Programming Non-graphical Games in C++