Trying to make a standalone signal system...

The last post wasn't meant to be actual code. More so my interpretation of the program when done. I've been tweaking the code to have the ability to have a delay (millis() ) between setting the turnouts and changing the colors on the signals to give the switches time to move. I am also trying to figure out how to make the red Flash when I needed it to. Before all I had to do was set the signalpin to flash and the code did the rest. Not sure how to modify this one to do that.
So to set a signal to red I would just have to code:
Signalpin[1] = red; // signal 1 upper head
I'm on my phone but I'll upload my modified sketch later.

Thanx
Harrison