implemented BFS. Just changed fringe to be a Queue