you do not need to remember state with the simplest solver:
- place your right hand on the right wall - walk forward, never letting your hand leave the wall - arrive at the exit
yes, you travel many dead ends along the way
but you are guaranteed to get to the end of a 'traditional' maze