Text-based tic-tac-toe implementation in Ruby.