Here a patch (using 'gaz_molecules') to choose the number of white ball. This patch return the position and velocity of each mass when they hit something. Hope it will help.
++
Jack