fixed logic of game storing