hasWinner variable is unnecessary, can just use winner