Put the code for MovingCubes in a separate file