switching between red and blue square