Added pause/unpause functionality to PlayState and linked it with the
Dialog.as