Robot that moves in a grid