Seaweed is instrumental in keeping sand on the beach