When parsing was started without knowing what game it is for, then the parser will look for the gamename key. And once it is found, the parser will use that game, if it is valid, to verify all already parsed key-value pairs and all succeeding ones.