Tic Tac Toe with AI in Ruby