Why is my snake and ladders code not working I am trying to do it with normal recursion instead of bfs

Please tell me what’s the problem with my code.