Author: Vladimir Portugalov
Draw a single continuous loop along the gridlines in the diagram. If a cell is shaded, then even number (0, 2 or 4) of the cell's edges are used by the path. If a cell is not shaded, then odd number (1 or 3) of the cell's edges are used by the path. The path cannot cross or touch itself.
Grid control: To draw a fence click at the cell edge or move mouse along the line holding the button. You can also put auxiliary marks by clicking at cells. More details about grid control are at the help page.