i worked contentedly through the morning , planting garlic , pinching back dead flower heads , digging out weeds and carrying on the gardener 's never-ending battle against snails , slugs , and similar pests .