waves flow back and forth while meeting the rocky coast