fixes the path finding of the dragon.

closes #9 .