Moved the responsibility of the 'game has ended' check to the Game class. Added a 'status' field to the game class to indicate whether the game is in progress or has ended. Game is not allowed to continue if it has ended.