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 balls move even faster, the balls are smaller, the balls no longer have tails and the colors were changed.