Trying to make a standalone signal system...

Yes your code and efforts have been more than helpful. And the delay I will be using are using the millis() feature. No delay() in the program. I'm just trying to fully understand your code as I have still alot to learn about the arduino platform. That's why I have so many questions. I have taken your code and tried adding to it. I finish the routes for moving the turnouts. The last thing I need to add is giving each individual signal their respective colors. That's why I put in there signalpin[1] = red. As I am trying this on my phone and don't have access to my laptop right now. Each signal color is dependent on the way the turnouts are lined and if the block inputs are high or low.

Please forgive me as I don't mean to sound unappreciative.

Thanx
Harrison