added pathFinder grid creation mechanism