The objective of the minigame is to harvest all 160 plants before time runs out. You can not leave more than 8 plants unharvested.