private static boolean areAllBasics(String types) {
        String[] split = types.split(",");
        String names[] = {"Plains", "Island", "Swamp", "Mountain", "Forest"};
        boolean[] bBasic = new boolean[split.length];

        for (String s : names) {
            for (int i = 0; i < split.length; i++)
                bBasic[i] |= s.equals(split[i]);
        }

        for (int i = 0; i < split.length; i++)
            if (!bBasic[i])
                return false;

        return true;
    }