More testing performed on both BFS and DFS, found out I was calling the visit function in the wrong order. Both are fixed and tested now, seem to be working correctly