A text game engine in C++