control updates

change the algorithm to rotate the arm