Added quitting transition

Added a transition for pressing the quit button to exit the game.