hopefully fixed pathfinding