a simple game with objected oriented c++