I have never played the game but it suddenly dawned on me that the algorithm seemed familiar.
A quick google showed that although you start with the same game configuration there are several ways or sets of rules to play the game. One of them prevents you placing stones in your opponents home cup but the current algorithm does not allow for that.