Working hex to boolA and back