The Space Rocks

Draw a line connecting the rocks of the same colors, and they will be removed from the board. You can select as many rocks as you want but remember you have limited time.