fixed almost all pathfinding crashes/bugs (sneaky is left)