Coding A Text Based Game Engine