The classic game in C++