Command line tic-tac-toe in ruby