if(chosenUser.getUserCards().size()==1)// you can not put a wild card when the wild card is the last card
returnfalse;
for(Cardcard:chosenUser.getUserCards()){
if(card.isAvailableToPut(numOfChosenCard,chosenUser,upperCard)&&!card.equals(chosenUser.getUserCards().get(numOfChosenCard))){//if there is another card to choose you can not choose wild card