fixed bug in evade ghosts which was finding dangerous junctions