Hamming coding works 100% now