I corrected the error with the Rubik's Cube rotate method.