Polygon.contains was toggling the return value