pathfinder.js added
checks for blocking in white