change games logic for id primary key