public void acquirePowerUp(PowerUp powerUp) {
        

        if (powerUp instanceof PowerUp.Gota) {
            // remove it from the map
            map.removeSprite(powerUp);
            // do something here, like give the player points            
            finish++;
            soundManager.play(prizeSound);
        }
        else if (powerUp instanceof PowerUp.Music) {
            // remove it from the map
             map.removeSprite(powerUp);
            // change the music
            soundManager.play(prizeSound);
            toggleDrumPlayback();
        }
        else if (powerUp instanceof PowerUp.Goal) {
            if(finish >= 0){
             // remove it from the map
            map.removeSprite(powerUp);
            // advance to next map
            soundManager.play(prizeSound,
                
                new EchoFilter(2000, .7f), false);
            finish = 0;
           map=resourceManager.loadNextMap();
            if(resourceManager.GetCurrentMap() == 3) {
                renderer.setBackground(
                    resourceManager.loadImage("Escenarios/Fondo03A.png"),
                    resourceManager.loadImage("Escenarios/Fondo01B.png"),                    
                    resourceManager.loadImage("Escenarios/Fondo03C.png"));
                midiPlayer.play(midiPlayer.getSequence("sounds/poison.mid"), 
                        true);
            }
            if(resourceManager.GetCurrentMap() == 4) {
                renderer.setBackground(
                    resourceManager.loadImage("Escenarios/Fondo03A.png"),
                    resourceManager.loadImage("Escenarios/Fondo03B.png"),
                    resourceManager.loadImage("Escenarios/Fondo03C.png"));
                midiPlayer.play(midiPlayer.getSequence("sounds/poison.mid"), 
                        true);
            }
            else{}
                
            }
        }
    }