What major lesson did British commanders learn from the battles?