implementing pause menu