Drop all of the colered balls in the bucket with the same color. Use left mouse button to cut the chain.