Here is a box filled with balls of three colors. You need to clear the field from balls. To do this, move the balls so as to form a chain of three or more balls of the same color. Such chains disappear and at the end there should be no single ball. For every destroyed the chain you get points.