When did the war end & what did Britain gain?