Moved node neighborhood check to PathNode class and mereged two methods