HTML5/Javascript TicTacToe with AI