Fixes

* The lines that connected the last-added dots wouldn't disappear after
resizing the window
* Flags didn't disappear when you clicked deselect