Improved the state selection function. As soon as a winning move is found,
we don't need further board evaluations. So the AI stops right there.
And returns the best move immediately.