function [] = puzzel(naam, N);
afb = imread(naam);
resolutie = size(afb);
afm = resolutie(1);
x = sqrt(N);
for i = 1:3
for j=1:afm/x
for k=1:afm/x
afb(afm-afm/x+j,afm-afm/x+k,i) = 0;
end;
end;
end;
randm = fix(rand(1)*40+10)
for o = 1:randm
hop1= floor(rand*(x))+1;
hop2= floor(rand*(x))+1;
hip1= floor(rand*(x))+1;
hip2= floor(rand*(x))+1;
for i = 1:3
for j=1:afm/x
for k=1:afm/x
im1 = afb(afm-hop1*afm/x+j,afm-hop2*afm/x+k,i);
im2 = afb(afm-hip1*afm/x+j,afm-hip2*afm/x+k,i);
afb(afm-hop1*afm/x+j,afm-hop2*afm/x+k,i) = im2;
afb(afm-hip1*afm/x+j,afm-hip2*afm/x+k,i) = im1;
end;
end;
end;
end;
image(afb);