another optimization to isPathBlocked
Merge pull request #141 from Rotem12/master

another optimization to isPathBlocked