public Map(Player p, int sizex, int sizey) {
        this.sizex = sizex;
        this.sizey = sizey;
        player = p;
        levels = new ArrayList<Level>();
        for (int x = 0; x < 10; x++) {
            levels.add(new Level(p, levels, x, sizex, sizey));
        }
        currentLevel = levels.get(0);

    }