fixes for Polygon vs Grid collision