rearanging numbers X plane

algorithm to rearange ids of cubies after a selected move is working on
X plane...