Using Ruby to move on a (square) plain.