if(digitalRead(leftPin) == HIGH)
Where is the else statement telling the servo to move the other way?