Forgot about depthFirstSearch as its own function