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 faster and there is no win or lose.