Imported from https://github.com/nathangrinsztajn/rubiks_cube