making tic tac toe bot a greedy algorithm