All you need to know about how balls land up in the ball library, and how they are selected for replacement