bridge pathfinding

general fixes and pathfinding for bridges