Tap to dig. Long-press or use Flag mode to plant a flag. Tap a number whose flags are all placed to clear around it. Your first tap is always safe.