public void doDead() {

        switch (ai.getDirection()) {
            case LEFT:
                setAnimation(new String[]{"goombaFlatLeft"});
                break;
            case RIGHT:
                setAnimation(new String[]{"goombaFlatRight"});
                break;
        }

        setDead(true);

    }