Cube of 2 dimensions Can move

Cubes of 2 dimension can move on the grid. Need to work the code so
that cubes of higher than 2 dimensions and move can be moved.
Cube with 3 Dimensions

Now it can go up to 3 DImensions. There is still a duplicaiton issue.
3dimensions

Cubes with 3 dimensions can now move. with no duplication.
Working on a loop that will move any cube

Working on a loop that will move any cube of any size.