It's a nice concept, and if you plan to develop it further I have a few suggestions to consider.
First, when the character switches directions to move into a corridor with a width of 1, he often gets "stuck" if he's not perfectly aligned with the new corridor you're trying to move into, and it might run more smoothly if when you change direction the program automatically aligns you with whichever row or column you're primarily within.
Second, I agree with JeffreyDriver that it seems like it could use some sort of threat (or various different kinds of threats) that are out to kill you. And if you do modify the game to go with that approach, I would suggest making some sort of signal showing where the player and the exit are from the very beginning (like concentric circles emanating from their positions or something) so players can be reasonably expected to start moving quickly to get away from a minotaur or whatever instead of having to search around with the torch for a while to even see where they are.