fixing the card flipping on the board