Dice Simulation on a 3x3 LED Matrix

oh so it was just a couple careless mistakes? The rest is fine?