Basic Agent based AI following Depth-first search