using polygons instead of math to find intersection and crash stuff