assignCard() checcks for following condition

Condition: Is the card selected randomly already assigned to a player or a computer. If it is then select another random card by calling that function again(recursively)