8 digit 7 segment display issues
The last loop exceeds the limits of 8 Digits. You iterate 9 times (0-8). 

   for (int a = 7; a &gt;= 0; a--){
        lc.setDigit(0, a, a, false);
        delay(100);
    }