generate id for game