pointInPolygon works