Hi everyone my arduino is doing somthing weird

if(cond){I think you meant:-if(cond()){
And that function can be simplified. Also, it could return a bool, instead of an int:-

bool cond()
{                               
   DigAn();
   return (col>base);
}

Edit: I'm not so sure about that 'delay(100000);' that's floating loose in the 'switch' statement, either.
Shouldn't it be under "default:" ?