x,y seem to update correctly, next step: connect the correct end coordinates with each other