add x,y coordinates to node struct