a text bases game engine written in c++