Nodes of degree 2 are not being deleted.

First try of fixing it.