added method to fill matchhistory