Sorry about that! Since I made this during a game jam, I forgot to include a hint on how to escape :) You just need to go back and close the doors to the rooms you've already been through, then lock a few of them with the latch.