Added Logic for pause menu