Code cleaning.
Add Node history system.

This intend to detect and find a way to deal with lines that go from draw to
mate against us.