public String getFlush()
    {
        //if it was already computed, return result
        if (flush != null) {
            return flush;
        }

        flush = "0";

        //check for flush
        if (cards[0].getColor() == cards[1].getColor()
            && cards[1].getColor() == cards[2].getColor()
            && cards[2].getColor() == cards[3].getColor()
            && cards[3].getColor() == cards[4].getColor())
        {
            flush = Character.toString(cards[0].getCharCard());
            flush = flush + cards[1].getCharCard();
            flush = flush + cards[2].getCharCard();
            flush = flush + cards[3].getCharCard();
            flush = flush + cards[4].getCharCard();
        }

        return flush;
    }