Suggest you have a hot cocoa, take a break and go for a walk then come back and follow line by line.
There are several possible problems that I saw. The best way to learn to troubleshoot your logic is to beat it into your head and tough it out. Quick answers don't help you at all. Your not there to do a job your there to learn.
Good luck.
On the last line I would have done an extend branch down for the flasher bit just, it looks nicer.
P.S. The hot cocoa is a good idea. Take that just before any test that requires a lot of thinking. It fires your brain up