optimized isPathBlocked()
Merge pull request #140 from Rotem12/master

optimized isPathBlocked()