Changed the hiding mechanic and hiding detection mechanic to work on the same variable.