Text adventure, small piece of code

This is just a some code from a text adventure I was working on, to test
some things out. Maybe we can add some of these things to our text
adventure.