Entropy with two subjects produces a consistent result with the SSD version

!isValidPixel caused serious erros