public static boolean MatchRankSuit(Card playercard, Card openedcard) {
        if (playercard.getRank().equals(Rank.ACE)) {
            if (openedcard.getRank().equals(Rank.ACE)) {//ace on ace
                return false;
            } else {//ace match
                return true;
            }
        } else if ((openedcard.getRank().equals(Rank.SEVEN)) && (CardNo7.isMustTakeCards())) {
            if (playercard.getRank().equals(Rank.SEVEN)) { //αν δώσει 7 οκ
                return true;
            } else { //αλλιώς δεν ταιριάζει και θα πάρει κάρτες
                return false;
            }
        } else if (playercard.getRank().equals(openedcard.getRank())) { //rank match//&& !openedcard.GetRank().equals(Rank.ACE)) {
            return true;
        } else if (playercard.getSuit().equals(openedcard.getSuit())) {//suit match
            return true;
        } else { //no match
            return false;
        }
    }