You have to eat a certain number of sheep to win each level. Do so by getting close to make them follow you out of sight from the dogs and smash Z and X in a completely random pattern. If the pattern is not random enough, the sheep gets away from you.