tic tac toe player using minimax and alpha-beta pruning