Why were castles captured rather than bypassed?