Just For Fun: 2000iQ Game

Try this tricky game (without looking the code). Send me screenshot of your result and tell me how many attempts did you need to pass it.

int x=12;
int y=12;
int diam=20;
int lives=10;
void setup() {
    size(300,300);
    string r="https://www.igostrategy.com/wp-content/uploads/2017/11/rocas-EOS.jpg"
    roca=loadImage(r,"png");
		string m="https://banderasysoportes.com/xen_media/bandera-cuadros-carrera.jpg"
    end=loadImage(m,"png");
		string j="https://pbs.twimg.com/ext_tw_video_thumb/1475939264412192778/pu/img/J8Wd2BJfswhv-ABO.jpg"
		face=loadImage(j,"png");
		string c="https://w7.pngwing.com/pngs/0/701/png-transparent-king-illustration-clash-royale-free-gems-anger-youtube-game-clash-video-game-barbarian-yellow.png"
		cface=loadImage(c,"png");
}
void draw() {
	background(#5EBFEF)
	fill(#DE701A)
	ellipse(x,y,diam,diam);
  	if(key=='w'){
			y=y-1;
		}
		if(key=='s'){
			y=y+1;
		}
		if(key=='a'){
			x=x-1;
		}
		if(key=='d'){
			x=x+1;
		}
	if(x-10<0){
		x=12
		y=12
	}
	if(y-10<0){
		x=12
		y=12
	}
	if(y+10>300){
		 x=12
		 y=12
		lives=lives-1
		}
	if(x+10>300){
		 x=12
		 y=12
		lives=lives-1
		}
	if(x>30-diam/2 && x<130+diam/2 && y>30-diam/2 && y<60){
		x=12
		y=12
		lives=lives-1
	}
		if(x>30-diam/2 && x<40+diam/2 && y>50-diam/2 && y<75+diam/2){
		x=12
		y=12
		lives=lives-1
	}
	if(x>130-diam/2 && x<170+diam/2 && y>130-diam/2 && y<170+diam/2){
		x=12
		y=12
		lives=lives-1
	}
	if(x>30-diam/2 && x<40+diam/2 && y>105-diam/2 && y<255+diam/2){
		x=12
		y=12
		lives=lives-1
	}
	if(x>30-diam/2 && x<130+diam/2 && y>255-diam/2 && y<265+diam/2){
		x=12
		y=12
		lives=lives-1
	}
	if(x>165-diam/2 && x<175+diam/2 && y>210-diam/2 && y<300+diam/2){
		x=12
		y=12
		lives=lives-1
	}
	if(x>120-diam/2 && x<130+diam/2 && y>30-diam/2 && y<265+diam/2){
		x=12
		y=12
		lives=lives-1
	}
	if(x>130-diam/2 && x<220+diam/2 && y>170-diam/2 && y<180+diam/2){
		x=12
		y=12
		lives=lives-1
	}
	if(x>75-diam/2 && x<85+diam/2 && y>50-diam/2 && y<220+diam/2){
		x=12
		y=12
		lives=lives-1
	}
	if(x>220-diam/2 && x<230+diam/2 && y>170-diam/2 && y<270+diam/2){
		x=12
		y=12
		lives=lives-1
	}
	if(x>220-diam/2 && x<260+diam/2 && y>260-diam/2 && y<270+diam/2){
		x=12
		y=12
		lives=lives-1
	}
	if(x>130-diam/2 && x<200+diam/2 && y>100-diam/2 && y<170+diam/2){
		x=12
		y=12
		lives=lives-1
	}
	if(x>268-diam/2 && x<269+diam/2 && y>260-diam/2 && y<300+diam/2){
		x=12
		y=12
		lives=lives-1
	}
	if(x>110 && x<141 && y>0 && y<13){
		x=12
		y=12
		lives=lives-1
	}
		
	textSize(20)
	text("Lives: "+lives,200,20);
	fill(#717374)
	noStroke()
	rect(220,260,50,10)
	rect(220,170,10,100)
	rect(75,50,10,170)
	rect(130,170,90,10)
	rect(120,30,10,235)
	rect(165,210,10,300)
	rect(30,255,100,10)
	rect(30,105,10,150)
	rect(130,100,70,70)
	rect(120,0,10,50)
	rect(30,50,10,25)
	rect(30,30,100,20)
	rect(270,270,30,30)
	image(30,30,100,20);
	image(end,270,270,29,29);
	if(x>120-diam/2 && x<300+diam/2 && y>0-diam/2 && y<170+diam/2){
		image(cface,130,100,70,70);
	}
		if(x>0-diam/2 && x<140+diam/2 && y>0-diam/2 && y<300+diam/2){
		 image(face,130,100,70,70)
}
	if(x>270-diam/2 && x<300+diam/2 && y>270-diam/2 && y<300){
		textSize(40)
		fill(#DE701A)
		text("YOU WON",50,150)
		noLoop()
	}
		if(lives<1){
			textSize(40)
		fill(#DE701A)
		text("YOU LOOSE",50,150)
		noLoop()
	}
	}