Counting a loop

joshuabardwell:
You can additionally help the compiler out by using the const keyword

Uploading the new code in the next reply. Still unsure where to put the constants, the setup() may be my best shot.

Robin2:
if you post the new sketch that you have written using the BlinkWithoutDelay technique we will be able to help you further.

Posting in the next reply!

joshuabardwell:
if( 50 < (pos < 130))

Changed that so the compiler evaluates a constant rather than check a range, which I did completely wrong. This section works like a charm now!