Coastal protection by wooden groynes on the sandy beach