Added support for screens to specify how to leave them, and the quit button now exits the game