!! The lineas are only logical with the constraint that the picture consists of a single curved line (without any loop and with two ends) !!Concretely, each black cell has exactly two of its four nearby cells that are black, exept for the two ends.