Checking the depth of a mortise