When waves cross each other, they could continue their ripple, eventually reach the shore without much change in flow, or they could send each other, even a part of each other, flowing backward in the direction from which they came. Such is the nature of waves.