private void initializeValues(int[][] map, boolean hasBomb, boolean inDangerPath) {
        for (int y = 0; y < map.length; y++) {
            for (int x = 0; x < map[0].length; x++) {
                if ((!hasBomb || inDangerPath) && map[y][x] > 0)
                    ClosedSet.add(new Point(x, y));
            }
        }
        if (!inDangerPath) {
            Iterator<Map.Entry<Point, Bomb.BombType>> iter = DangerPath.entrySet().iterator();

            while (iter.hasNext()) {
                Map.Entry<Point, Bomb.BombType> e = iter.next();
                if (e.getValue() == Bomb.BombType.Bomb1)
                    continue;
                ClosedSet.add(e.getKey());
                iter.remove();
            }
        }
    }