code clean up and removed if() at the expense of flipping the blue card