Assignment2 regarding polygons and intersections