function r = bump(x,y,maze,rad);
%function r = bump(x,y,maze,rad);
if not(inmaze1(x,maze,rad)),
    r=x;
    return;
end;
d=y-x;
nmov=ceil(sqrt(d*d'))./rad;
d=d/nmov;
for k=1:nmov,
    r=x+k*d;
	if not(inmaze1(r,maze,rad)),
        r=r-d./5;
		while not(inmaze1(r,maze,rad)),
            r=r-d./5;
        end;
        return;
	end;
end;
r=[0 0];
