So your specific error for the constantly flashing thing is here. you basically have a if(x == x) statement. which is always true, so it always will fire. from looking at the tutorial you want one of the pins to be a 5.
Note you will probably have some other inconsistent errors and activity because you are using a number of Do Once nodes with no way to reset them.
