Added comments and syntax while I try to solve the rotation.
Refactored shape rotation order, is own function for coord drawing.
Removed debug log.