rotation update part2
center cube
refactor rotation code