added constants to cards.js