This fixes the flickering of the cube at the end of the rotations.
This was happening because 'cube' was getting updated at the same
time as the draw loop was rendering. I had synchronized getting a
copy of cube, but I did not do a deep copy like I needed to. There
are much better ways to do this state passing that I may spend some
time on later.