There are two places where I can think you might be trapped - one is a slight logic oversight (although there is still a route out), and the other is because you've not visited a passage enough times (it changes randomly, only one outcome allows progression).
I was trapped in a spot I'd escaped from previously. Maybe more randomness to the non-escape text would be a better clue that I could escape again (if I can), rather than having used up my escapes. Or it could just be that I'm not a big enough fan of puzzle-type games to try the right number of times.
Comments
If it's neither of those, you hit a bug