DFS works as intended now. Program also outputs an answer properly, or lack thereof. Fixed a bug with string searching in visited by switching to numeric storage and searching.