Problem with led matrix array

Okay here is the schematic. Sorry for this but I don't know in which program I could make one.

If I want to turn on the LED's without an array all glow bright like they should do. If I use the script I've uploaded I get this problem.