Updated paintArm to calculate positions for more than one rotation.