Remove lines from tutorial which set the variable 'maggot' to 0.

That variable was used in a previous version of the tutorial.
Tutorial: put setting the completed flag and resetting the used variables into a separate function.