The reason why I am using the analog pins is because pin 2 to 13 are triggering relays which are part of the sequence that I need to trigger.
My current code is pretty much a bunch of code taken left and right patched together to try to achieve the results.