The code below is just example code to explain the program since the original is too complex and long. I create an instance of the Game object. It can be one of
Game