working play ttt minimax vs random