Waves can destroy sandcastles