Refactor: move global vars to state var
Refactor: move global vars to state var

hist is also fetched from localStorage everytime a Check is done,
instead of being maintained constantly.

EaterOA/GanbaWhoby,EaterOA/GanbaWhoby