You need to collect same color balls together, use balls on border for it. When three or more balls with same color stay near each other they disappear from board.