Changing pathfinding algorithm