Match simulation algorithm