Let me introduce you to the ancient Right-Hand Rule for solving mazes.
Entering a maze, put your hand on the right wall and follow that wall until you arrive at the exit.