I have these two functions to compute a BFS of a binary grid with 1\'s being the obstacles, but its not working correctly. I tried to debug with some print statements and notice