I guess what you are trying to do is after 5 balls are selected you want to destroy the ones not selected and create 14 new balls to select the "extra number"
This could be easily done by giving the balls a boolean variable selected and setting it to true when clicked.
when 5 balls are selected
system pick all balls where selected is false - destroy balls
then create the 14 new balls