fixed bug where it displays the wrong player as the winner