I don't exactly understand everything but it goes fast.
It seems that there are multiple branching combos such as:
A -> B -> B
A -> B -> A
B -> A -> A

They all seems to have different effect, but it's quite difficult to say without having the hands on the job.