Moved game window logic to game class.