public void reader(int m) throws FileNotFoundException {
        Scanner s = new Scanner(new File(getClass().getResource("mazes/").getPath()+"level0.txt"));
        try {
            back = ImageIO.read(getClass().getResource("images/levels/level0.png"));
        } catch (IOException ex) { }
        
        int r = 0;
        int rs = 0;
        int rh = 0;
        int rp = 0;
        while (s.hasNextLine()) {
            String line = s.nextLine();
            lines.add(line);
            if (line.contains("5")) {
                row = r;
                column = line.indexOf("5");
                pacPos = new Position(column, row);

            }
            if (line.contains("3")) {
                Position temp = new Position();
                temp.y = rs;
                temp.x = line.indexOf("3");
                posSoldiers.add(temp);
            }
            if (line.contains("4")) {
                Position temp = new Position();
                temp.y = rh;
                temp.x = line.indexOf("4");
                posHumans.add(temp);
            }
            int i = 0;
            while(i < line.length())
            {
                if(line.charAt(i) == '6'){
                Position temp = new Position();
                temp.y = rp;
                temp.x = line.indexOf("6");
                posPowers.add(temp);
                }
                ++i;
            }
            ++r;
            ++rs;
            ++rh;
            ++rp;
        }

        rows = lines.size();
        columns = lines.get(1).length();

        width = columns *2 + 28;
        height = rows *2 + 28;
        
        

    }