Combined if statements to make minimax_alpha_beta method clearer.