Rotate a cube