Tweak frequency calculations to be more accurate

Make sure that the hero can't be controlled while he's in a forced
custom route.
After Switches/Var/Items/Party operations, refresh right away

Check if the move list has ended at the end of each loop