Fix whoWins function and call it from buttonClick