rotating clicked sides clockwise and checking if cube is solved