How to solve a Rubik’s cube