Added rotating (triangles function).
Added counting angle and passing it as a parameter to polygon.