Basic logic for the digging action