Draw: start on a square with a free connection, or drag a line's terminal to extend/shorten. Click a line to select it, then press Delete to remove it. Numbers: click a square.
You win!