Added code to track how long the player has been on the ground, and a constant for how long the player must have been on the ground before they can dig.