Indeed, the Waits are not the best idea there.
Also, why groups when you could use functions ?
And perhaps, better than wait actions, use timer behaviors to end up "cycles" in a more elegant fashion.
As far as I could imagine, you have two groups relying on clicking the same object (A) with different wait time. One group is likely taking "dominance" over the other, and it is probably the group 0 since the wait time is the shortest.
I also invite you to see the video I made on
.
You may find some inspiration there on how to handle the recurrence and tree branching.