added prototype of cardGame