Added checkPolygon function