Now compares both values (max and min) and, if they're equal, it changes
the maximum one to x+1