this commit will add the logic to determine if a player has won the game and alert the winner