Change the color of the ball to finish the game. In order to to avoid obstacle the only you can do is the pick the right color.