Rubik's cube emulation.