private static Mummy[] deleteMummy(Mummy[] mummy, int i) {

        for (int j = i; j < mummy.length - 1; j++) {
            mummy[j] = mummy[j + 1];
        }
        Class invoker = mummy[i].getClass();
        Mummy[] tam = null;
//        for (int j = 0; j < tam.length; j++) {
//            tam[j] = mummy[j];
//        }
        if (invoker.equals(MummyWhite.class)) {
            tam = new MummyWhite[mummy.length - 1];
            for (int j = 0; j < mummy.length - 1; j++) {
                tam[j] = new MummyWhite(mummy[j].getX(), mummy[j].getY());
            }
        } else if (invoker.equals(MummyRed.class)) {
            tam = new MummyRed[mummy.length - 1];
            for (int j = 0; j < mummy.length - 1; j++) {
                tam[j] = new MummyRed(mummy[j].getX(), mummy[j].getY());
            }
        } else if (invoker.equals(Scorpion.class)) {
            tam = new Scorpion[mummy.length - 1];
            for (int j = 0; j < mummy.length - 1; j++) {
                tam[j] = new Scorpion(mummy[j].getX(), mummy[j].getY());
            }
        } else if (invoker.equals(ScorpionRed.class)) {
            tam = new ScorpionRed[mummy.length - 1];
            for (int j = 0; j < mummy.length - 1; j++) {
                tam[j] = new ScorpionRed(mummy[j].getX(), mummy[j].getY());
            }
        }
        return tam;
    }