Don't overdig

When you're in a hole, best thing to do is to stop digging!  This makes Pit terrain no longer diggable, so you can't perpetually dig and dig to toggle between shallow/deep Pits.

Thanks to nikow on the IRC for reporting.