What was one of the important roles submarine played in the war