public boolean isValidTool(int toolID) {
       if (tool==toolID||tool<=3) {//if the tool they have is what we need, or we don't need something specific
          return true;
       } else if (getToolType(toolID)==1&&getToolType()==1) {//they've got a pick and we need a pick
          if (getToolLevel(toolID)==12) {//gold exception
             return getToolLevel()<=6; //only works if iron or less needed
          } else {
             return getToolLevel(toolID)>=getToolLevel();//if they've got something better or equal to what we need
          }
       } else if (getToolType(toolID)==2&&getToolType()==2) {//they've got a shovel and we need a shovel
          return true;
       }//note: there are no cases where an axe is nessesary
       return false;
    }