Modify Card:match algorithm to match demo