modified tictactoe2.rb