Classic chess game with cursor in Ruby