I got it to work. It ain't pretty, but it works.
The algorithm is actually pretty slick, but it's slightly different from the release algorithm, as it is only one target. This is because of the restricted nature of a maze puzzle. In a "real" game, it can force you to go one place before going another - locked gateways.
Anyhow, the algorithm works.