pathfinding speedup -Nik