Wick editor is not reading my code!

hi i would need help with my project i have a block thats movable cus i got help from this My Project3-20-2022_16-58-03.wick (13.0 KB) from someone i kinda forgot but i have this movable block that if it hits something it blocks it but wick says error line 21 and its not reading the code heres the code

if(this.hits(character)){
this.x+=(this.x-character.x)*0.1
}

if(this.hits(competitor)){
this.x-=(this.x-character.x)*0.1
}

if(this.hits(ghost)){
this.x-=(this.x-character.x)*0.1
}

act like this is help cus i forgot to put this on help

i got it lol iam an idiot

Was that the file that kept reading the error?

i deleted it but can you see whats going on with it the code i thought i found the code but its not reading it