public BoggleSolver(String[] dictionary) { for (String word : dictionary) { dict.put(word, true); } }