Change the menu to use structs like Sean says jn the video series. It's a lot simpler to access and change specific variables of actions and item actions at any point during runtime.
Look up Snowstate and convert the entire state system to that instead. This also removed any errors on closing the game, etc. Plus you have complete control over what happens on entering or leaving the states - much better.
If you're struggling with understanding the system as is now, it'll look a LOT clearer written into Snowstate.
Edit: make the changes you see from the final video in the series, they aren't accurate with this project.