finished first version of match creation