finished tic tac toe with alpha beta cutoff