To avoid redundancy of the addresses in the array, s_players, if msg.sender calls the enterRaffle() multiple times:
we check if the address has already entered the raffle before calling enterRaffle() using mapping(address => uint256(i.e msg.value)):
if true ? increment s_addressToValue[msg.sender] with the msg.value: increment msg.value && s_players
Hence, we only have unique addresses as indices in our s_players array
To avoid redundancy of the addresses in the array, s_players, if msg.sender calls the enterRaffle() multiple times:
if true ? increment s_addressToValue[msg.sender] with the msg.value: increment msg.value && s_players
Hence, we only have unique addresses as indices in our s_players array