what happens when a wave breaks