Robot solves Rubik's cube