Copy-pasted code to Pause Menu