Add shutdownhook to quit game.