Added nextUnvisited to Node