If a kid is fouled and gets up and kicks the ball at the other player, i would see that as retalliation, especially if the individual is rushing to get up and going at the person with the ball. Ref did the right thing by putting both players on the bench to cool off. In reality, a yellow card is not that big deal, and again, in a heated situation a good way to get both parties off the field to think about it. If it were to continue when they re-enter, you give them another yellow or red.