Pathfinder - Work in Progress

What do you guys think of this:
[swf=http://members.tripod.co.uk/jerezz/pathfinding.swf]width=550&height=400[/swf]

Link: Link

This is a pathfinder script that I’m still working on. Just click a light square to watch the circle drive around the dark squares till it reaches the destination. Key down to adjust squares.

It will sometimes appear to be in an infinite loop, but it should eventually escape (note eventually). It also occasionally freezes in place. I have yet to figure out what causes this and therefore cannot fix it yet. Other than that it works quite well. Much better than I expected.

Heres the fla if you want a look: