dfsWhile not working still