fix direction of nearby nodes with relation to x,y cordnates.