This little tweak now also catches draws for positions like this
8/2k5/P7/8/8/2K5/5B2/8 b - - 0 1
where it depends on which side is to move, if it is a win or a draw.