You win if all bubbles are show, if there are only a few lines left you can shoot away colors by making groups of the last balls. If no balls with a specific color are left they don't come back!