Before Changing Polygons to a pointer based dynamic array