My algorithm works almost well, but unfortunately, when it reaches a corner, it can\'t move further. Can you give me some hints on what I am doing wrong? If the algorithm does n