hmm i think i got that the wrong way round
try Temp = Counter & 31

the bitwise and is faster than a // which uses a divide

i wonder about led/LedNew arrays as byte . a cell is either dead or not dead a bit can store that info