A simple game in C++