He probably checks for connections after every move in white/black order.
Yes, that's true. It was implemented this way.
But I agree: to be in consistence with the rules for e.g. Yinsh Black should be the winner.
I've just changed the code accordingly.