public int getMaxHandSize() {

        int ret = 7;
        for (int i = 0; i < handSizeOperations.size(); i++) {
            if (handSizeOperations.get(i).Mode.equals("=")) {
                ret = handSizeOperations.get(i).Amount;
            } else if (handSizeOperations.get(i).Mode.equals("+") && ret >= 0) {
                ret = ret + handSizeOperations.get(i).Amount;
            } else if (handSizeOperations.get(i).Mode.equals("-") && ret >= 0) {
                ret = ret - handSizeOperations.get(i).Amount;
                if (ret < 0) {
                    ret = 0;
                }
            }
        }
        return ret;
    }