BFS dirty code..need to refactor