Really cool concept! Luckily for me the path got trapped in a corner which made it easy to catch up.
I've got a flood fill algorithm checking if the path is going to hit a dead end, but it sell does anyway sometimes! Thanks for playing!