added API for getting matches which returns an array of match and card information