An attempt at the "toy robot" coding challenge.