kaluza: 2. If a player has no legal move or if his only legal move is to place a stone inside his own uncontested territory (that is, in territory surrounded by his own stones and which does not contain any stones of the opposite color), then the game is ended and whoever has more points is declared the winner. All stones on the board are counted as alive (this isn't right, but it will make the programming easier for Fencer ;-)
wouldn't work :-( The loosing player will run out of moves very quickly but may still have dead stones in his opponents territory. Since these stone will count for him he'll win. e.g. 5x5 X=black O=white white wins by 2 points