Updated production rules:
rule_8: A5 -> 8 6 3 4
rule_16: A8 -> 7 9