I think i know where I've gone wrong. I haven't implemented the circuit with both the comparators and the logic equations from the kmaps. The one I simulated was just based on the kmap logic. So I should implement the logic of the kmaps and the comparators together, right?