 If the mark is encountered again and the painter is traveling in the same direction, then the painter knows that it is safe to paint the square with the mark and to continue in the same direction.This is because (through some unknown path) the pixels on the other side of the mark can be reached and painted in the future.The mark is removed for future use.