The movement of waves on the beach