added a rotation to the cube based on the position of the cursor