You must remove all balls of the same color, by lining them up against eachother in any direction. You have a certain amount of moves on each level. The black balls cannot be removed.