convert: split up game specification code generation