Makes sure check for two pairs doesn't allow two pairs with same value