I don't think his solution is that "dumb" except if by "dumb" he means over-complicated.
A "dumber" solution would probably be to follow a side of a "wall". Imagine if you're in a real maze if you put your finger on a wall and follow that wall (your finger is always in contact with the wall) then you'll eventually get to the exit if there's one or you get back to the entrance.