Update game init and end code, bug fix.

Added new_game_init() and game_over() functions. They handle the setting
and resetting of various persistent variables whose values need to be
changed at the beginning or end of the game.

Fixed a bug where the example script was not returning to the control
script and therefore the game_over() code was not being run.