Attiny85 - Help programming Timer

Hi,

So I have a attiny85 with 3 leds and a button hooked up to it. I followed a project here. When you push the button it should (and does) iterate through the three LED's. That works fine.

Then what I want it to do is go back down the chain of LEDs in reverse over time. Depending on the LED that you end on. So if you press the button 3 times, it should light up the third LED then after 2 seconds the second, then after 5 second the last one, then after 10 seconds they should turn off.

This works for the first time it runs, but after it hits 0 and the last LED turns off it doesn't work anymore. You can press the button and the lights will change but then sometimes 2 lights are on or it starts the countdown again and turns them all off. You sorta have to run it to see it.

Anyways, here is my code (attached). Any help would be appreciated.

StinkerTicker.ino (5.67 KB)