Updated move functionality. Rotate not working properly.