added if/else statement and variable for number of winning matches