can make stack plots of bfs now