How a Rubik’s cube relates