added functionality which flips cards over if two were selected