The problem I am facing is the following: I have a function based on the BFS search algorithm that I use in a NxM grid, the mission of this function is to return the followi