Finishing up my Mini-Sumo

I am only using three sensors since 2 of the five are pretty much worthless. Here is some of the only code I found.

Void setup () {
Pinmode (x,input);
Pinmode (y, output);
Serial.begin(9600);
}

void loop (){

Serialprintin(analogread (x));
Delay (100);
If analogread(x) < 250)
//run motors one way
Else 
//run motors another way
}