Will not draw invalid lines now (not perfect, but close enough)
Lines close to the border will now autocomplete