Small changes in solver_impl functions.
alphabeta is still to be completed.