Fixed end of cycle bug

Previously, when all pixels reached their end color, it got stuck in the while loop in flickerPixels(). Fixed that.