creating tic-tac-toe game in ruby