Added logic for picking and assigning a winner