Altered the function hexToDec() so it actually works