How to assemble a Rubik's cube