Restructured game logic. Defined new methods to avoid code duplication. Moved Main() method in a new class called GameTest