Added logic for determine if game is over and who's the winner and loser