i think i fixed the pathBlocked logic