Traverse the world

add: functions traverseDepTree and traverseChildTree
  Each travels the path to the end or max_depth.