fixed tictactoe.rb to work in older ruby