improved pathfinder, it now adjusts to the destructible size