Made it so that the GUI won't close until the game ends