public void loadMap() {
        loadTank1();
        if (numberOfPlayers == 2) {
            loadTank2();
        }
        level++;
        map.clear();
        try {
            Scanner sc = new Scanner(new File(fileLevel + level + "_map.txt"));
            while (sc.hasNext()) {
                String key = sc.nextLine();
                int value = Integer.parseInt(sc.nextLine());
                map.put(key, new ImageIcon(imgPath +"wall_"+ value + ".png"));
            }
            sc.close();
            sc = new Scanner(new File(fileLevel + level + "_mapInt.txt"));
            for (int i = 0; i < getHeight(); i++) {
                for (int j = 0; j < getWidth(); j++) {
                    int key = Integer.parseInt(sc.nextLine());
                    mapInt[j][i] = key;
                }
            }
            sc.close();
        } catch (FileNotFoundException e) {
            e.printStackTrace();
        }
        for (int i=280; i<320;i++) {
            for (int j=560; j<600; j++) {
                mapInt[i][j]=-1;
            }
        }
        map.put("280_560",new ImageIcon(imgPath +"eagle.png"));
        repaint();
    }