Implemented visualization of BFS traversal.