private void setImgCoords() {
        switch(type) {
            case DIG:
                imgX1 = 2*BLOCKSIZE + (depth/4)*BLOCKSIZE;
                imgY1 = (depth % 4) * BLOCKSIZE;
                break;
            case DIRT:
                imgX1 = 0;
                imgY1 = 0;
                break;
            case GRASS:
                imgX1 = BLOCKSIZE;
                imgY1 = 0;
                break;
            case WATER:
                imgX1 = 0;
                imgY1 = BLOCKSIZE;
                break;
            case TREE:
                imgX1 = BLOCKSIZE;
                imgY1 = BLOCKSIZE;
                break;
            case SAND:
                imgX1 = 0;
                imgY1 = 2*BLOCKSIZE;
                break;
            case SNOW:
                imgX1 = 0;
                imgY1 = 3*BLOCKSIZE;
                break;
            case TREASURE:
                imgX1 = BLOCKSIZE;
                imgY1 = 2*BLOCKSIZE;
                break;
            case HINT:
                setImgCoordsHint();
                break;
            default:
                break;
        }
        imgX2 = imgX1 + BLOCKSIZE;
        imgY2 = imgY1 + BLOCKSIZE;
    }