use MAX_CARDS instead of immediate values for cards