I tried a few different approaches, even using the second code first, which does work, but yes I think you're meant to just die there. haha. Still a really awesome game with great atmosphere!