Updated production rules:
rule_4: A3 -> 13 5 A4 4
rule_30: A13 -> 8 A14 7 14