Cool, always happy to have a look at the source code for learning. That is the way i started with making text games in my younger years.