Allow arbitary order of main and sideboard in parse_cod