added check that a winner has been selected