Try to shoot the balls with similar color that are approaching linearly on the track towards the hole. Your aim is to avoid the balls reaching the hole by matching 3 consecutive balls or more of the same color, and making them disappear to reduce the ball counts.
Use the mouse to interact. Press Space bar for pausing the game. Press 'M' button to mute the sound.