added stack pattern and fixed number of LEDs