Drag from square to square to draw the loop. Tap a link to cross it out, and again to clear it. Tap an empty square to mark it unused.
White pearl: the loop goes straight through it and turns on at least one of the squares just before or after it.
Black pearl: the loop turns on it and goes straight for at least one square on both sides.
Keys: arrows move, Shift+arrow draws a link, X crosses the link you just moved along, Backspace clears it, Space marks a square unused, H hint, Z undo, Esc.