Fully working recursion. Doesn't undraw path lines.