Please see my code my bfs algorithm is not working properly

sorry I missed your doubt

which thing is not working properly in bfs??

i have run your code
everything works fine