Code for the Pieces of Eight robot.