If I'm correct, the delay() function in Arduino is a delay in *milliseconds*, not seconds. So you want delay(1000), not delay(1). Otherwise it should work.
A more robust way of doing this, but one that would require more sensors and time, would be to turn the robot until the sensors detect that the path in front of it is clear, then move forward. No delays required!
MIKE