Sort the balls into flasks so that there are balls of the same color in the flask
Click on the flask from which you need to get the ball, and then on the flask, where to send this ball
There are special, harmful flasks in which you need to put balls of one specific color