Python code for creating a text adventure.