The pure nodal solution will always work for this flash game, but sometimes requires more work than more creative solutions.  It looks like there are almost always a depth of L+1 nodes, where L is the level of play.