Rookie Question: Rolling a cube

Player control the cube. The move will roll 90 degrees every in the x direction.