began implementin BFS. having trouble with how to store explored nodes