added crude pathfinding for eg dogs, npcs