Robot that can solve Rubik's cube