Simple game written in C++