function xdist=dist;
%function xdist=dist;
x=draw;
xdist=sum(distance(x));

