added bfs output

donw by cian cronin