Add global game flags / allow player to restart level

I added a global flag system so that the menu can flag actions
(restart the level, exit the game, etc.). I coded the menu actions for
"restart level" and "exit game" to set flags. I also added a method for
restarting the level that is called when the GAME_RESTART_LEVEL flag is
set.