implemented a pause menu