Below please find links to archived Q&A discussion for the Code Your Own Adventure 2! course.
There is a bug (of sorts) in the code for 1/6 of Code Your Own Adventure 2. If you choose PAY -> NO the game should end as you don't have any money. However, the game continues anyway with the question "Is your money in Troll Dollars?" and if you input "YES" you still lose. The last question is superfluous.