Drag the mouse over connected dots of the same colour. Diagonally connected dots are not counted. The dots will disappear when dragged over with other dots of the same colour. While dragging, you cannot drag over ones already dragged.
Based on a game I saw somebody play. Slightly glitchy.