public void loseLife() {
        if((lostLife == false)&&(isLoaded == true)){
        countLifes--;
        }
        if ((countLifes == 2)&&(lostLife == false)) 
        {
           removeObject(lifes[0]);
           lostLife = true;
           destroyWorld();
           loadLevel(currentLevel);
           isLoaded = false;
           
           if((lostLife == true)&&(isLoaded == false)){
            lostLife = false;
            isLoaded = true;
        }
        }
       
        else if ((countLifes == 1)&&(lostLife == false)) 
        {
            removeObject(lifes[1]);
            lostLife = true;
            destroyWorld();
            loadLevel(currentLevel);
            isLoaded = false;
            
            if((lostLife == true)&&(isLoaded == false)){
            lostLife = false;
            isLoaded = true;
        }
        }
        
        else if ((countLifes == 0)&&(lostLife == false)) 
        {
            // Game Over
            removeObject(lifes[2]);
            lostLife = true;
            destroyWorld();
            gameOver();
        }
    }