For Loop in Processing (snake game)

thank you so much for helping me
but now I’m trying to move the snake continuously around but it’s giving me syntax error
this is my code

int x = 250;
int y= 250;

final int SNAKE_SIZE=20;
int SNAKE_LENGTH=3;
final int X_SPEED = 1;
final int Y_SPEED = 1;
void setup(){
size(500,500);

}

//ellipse(250,290,SNAKE_SIZE,SNAKE_SIZE);
void draw(){
if(x >= 500 || x <= 0) {
background(0);
}
if(y >= 500 || y <= 0){
background(0);
}
}

drawSnake();

}
void drawSnake(){

for(int i=0;i<SNAKE_LENGTH;i++){
ellipse(x,y,SNAKE_SIZE,SNAKE_SIZE);
y+=20;
}
y=250;
}
void keyPressed(){
if(key==‘w’){
drawSnake();
y -= Y_SPEED;
}
if(key==‘s’){
drawSnake();
y += Y_SPEED;
}
if(key==‘a’){
drawSnake();
x -= X_SPEED;
}
if(key==‘d’){
drawSnake();
x += X_SPEED;
}
}