Code from Choose Your Own Adventure lesson