 In the second position, White's king is close enough to win – by allowing the pawn to promote but then checkmating the king .White wins if the king is close enough to move to one of the squares marked with dots in two moves .and White checkmates.