storing game ids in the history