Our dog games are split up into rounds: each time the dog gets a treat, we start a new round of the game.
This way, the app can automatically keep track of things like success rates, timing, and difficulty.
Sometimes it makes sense to do some set-up at the beginning of each round:
onRoundStart ->
moveto random position