You need to arrange three or more balls of same colour in a row and they will disappear.
Use the mouse.