private Card[] getAllCards()
        {
            ArrayList<Card> cards = new ArrayList<>();
            
            for (Card card : this.communityCards) {
                if (card != null) {
                    cards.add(card);
                }
            }
            
            for (PlayerProfile profile : this.profiles) {
                if (profile.getHandType() == HandType.EXACTCARDS) {
                    Card[] playerCards = profile.getCards();
                    for (Card card : playerCards) {
                        if (card != null) {
                            cards.add(card);
                        }
                    }
                }
            }
            
            Card[] result = new Card[cards.size()];
            
            return cards.toArray(result);
        }