Marble Lines

A line of balls moves around the screen. You must match the colors in groups of three or more by shooting individual colored balls at the line. Be careful! The individual balls can make the line longer, but matching colors shortens the line. Can you match all of the balls before the line reaches the hole?