Implement drawRegularPolygon method