ADDTAIL
Balls are appearing randomly on stage. The generated ball has a unique number and starts moving. There is a simple rule here. 1. When balls with different numbers meet, the smaller ball becomes the tail of the larger ball. If the same number of balls is already in a tail, the number of that tail i