Autogenerate game ids for entities (if not passed in state).