The goal is to break all the bricks but to do this the ball has to be the same color, except for the yellow ones. To change the color, take the ball to the squares on the walls.