Check card

Added the function checkCard in game.c