A simple game coded in C++