The Holy Roman Empire ceased to exist when

A. Cardinal Richelieu became the leader of France

B. It was divided into independent states

C. England finally won the Thirty Years' War

D. Denmark took over the entire territory