add function to check if Rubik's cube is solved