btw, if you're going to keep working on this, a good quality-of-life feature would be to allow the player to just click on an end node to start drawing a new line, rather than having to hold the mouse button down.