added a for loop for looping through the LEDS, sometimes it works perfectly sometimes not at all, it may be a memory problem with the SRAM not being enough, also fixed a bug with the LED numbering