modified calculateRegularPolygonAngle; passed test