This is a game of Lines. You need to arrange three or more (four for Expert mode, five for Master) balls of same colour in a row and they will disappear.
Image + Link: Link Only: