I made a program to print 99 bottles of beer, and a game that you have to pick up the stones off of the ground, and a MIDI transpose (but it messes up percussion).
Download: http://zzo38computer.cjb.net/PureData/
This is all I have so far, but you can make a comment of it.
. Could it be that you need a to use [triggers] more? I think it's behaving in an erratic way because of indeterminate evaluation orders. Also to make the game fun for humans the starting value "nim-sum" (or if you play with sweet dumplings instead of rocks the dim-sum) should be 0 [mod 2] (even for one heap) or else you already lost on move one.