Fixed end-game. It now correctly shows the winner of the game.