An object-oriented approach to a collection of games in C++