creating pathfinder grid