Moved drawing of edges to seperate function, edges draw underneath nodes