works and draws line but needs reworking of newDir function to prevent backtracking on existing line