private ArrayList<String> neighbors(String current, HashSet<String> dict, HashMap<String, Boolean> visited) {
        ArrayList<String> neighbors = new ArrayList<String>();

        for (String s : dict) {
            if (visited.get(s) == false && match(s, current)) {
                neighbors.add(s);
            }
        }
        return neighbors;

    }