Its not doing some comparing correctly.

Or it is. Im not quite sure.