Solution to robot moves