Added logic to know who won