How it works
A game has to remember things, like how many apples you caught. It keeps each count in a variable, a box with a name.
A set block puts a value into the box. A change block adds to the value already inside.
A variable keeps its value until a block changes it. It never forgets by itself, and it never starts at zero by itself.
So a game starts with set to zero, under the flag block, to give every new game a fresh start.