properly sets the id of a newly created game