private static File initMap() throws IOException {
        String map
                = "...?????...\n"
                + ".#.#?#?#.#.\n"
                + "..???????..\n"
                + "?#?#?#?#?#?\n"
                + "????.$.????\n"
                + "?#?#$$$#?#?\n"
                + "????.$.????\n"
                + "?#?#?#?#?#?\n"
                + "..???????..\n"
                + ".#.#?#?#.#.\n"
                + "...?????...";
        // File located to the root folder of this project.
//         File mapFile = new File("map1.txt");
        File mapFile = File.createTempFile("map", "txt");
        FileWriter fw = new FileWriter(mapFile);
        fw.write("11 11\n");
        fw.append(map);
        fw.append("\n");
        fw.flush();
        fw.close();
        return mapFile;
    }