more functionality for pathfinding