Controlling cube movement through player controls