revamped how the pause menu is working to be able to easily add other menus to it later on