Is there nowhere else a node would ever need to be drawn? If you make node into a class as I suggested above, I would consider making drawNode() into Node#draw().