Depth Search Initial Logic