Fix and unify autosave

I fixed bug about autosave and unified all checks about if in main menu or not into the force_autosave function.