[Solve] Maze

Hi, I'm working on a maze. I wanted to know how to make the character able to move through the entire maze without getting off the path.

Any ideas how to solve this?

Thank you