if the square is largest then store it
if ( side < abs ( points [ i ] [ 0 ] - points [ j ] [ 0 ] ) or ( side == abs ( points [ i ] [ 0 ] - points [ j ] [ 0 ] ) and ( ( points [ i ] [ 0 ] * points [ i ] [ 0 ] + points [ i ] [ 1 ] * points [ i ] [ 1 ] ) < ( x * x + y * y ) ) ) ) : NEW_LINE INDENT x = points [ i ] [ 0 ] NEW_LINE y = points [ i ] [ 1 ] NEW_LINE side = abs ( points [ i ] [ 0 ] - points [ j ] [ 0 ] ) NEW_LINE DEDENT