Which structure of the heart acts like an automatic door that closes once blood enters a chamber and forces it to exit in the proper direction.

A.
atria

B.
valves

C.
arteries

D.
ventricles