The black bar will go to the mouse x position. Try to keep the balls from touching the grey. Any suggestions can be made in the comments.
In this version, the ball duplicate faster and faster the more balls there are on the screen.