public void act(){
        
        // Check for death, level completion and game completion:

        if((currentLevel == 1)&&(addScore == false)&&((player.getY() <= 11)&&(player.getX() >=62))){
                scoreCounter.add(10);
                addScore = true;
        } 
            
        if((currentLevel == 2)&&(addScore == false)&&((player.getY() <= 6)&&(player.getX() <=15))){
                scoreCounter.add(10);
                addScore = true;
        } 
        
        if((currentLevel == 3)&&(addScore == false)&&((player.getY() <= 6)&&(player.getX() <=15))){
                scoreCounter.add(10);
                addScore = true;
        } 
        
        if((currentLevel == 4)&&(addScore == false)&&((player.getY() == 28)&&(player.getX() >=62))){
                scoreCounter.add(10);
                addScore = true;
        } 
        
        if((currentLevel == 5)&&(addScore == false)&&((player.getY() <= 9)&&(player.getX() <=15))){
                scoreCounter.add(10);
                addScore = true;
        } 
        
        if (checkLevelComplete())
        {
            destroyWorld();
            currentLevel++;
            levelCompletePoints = loadLevel(currentLevel);
        }
        if (currentLevel == WINNING_LEVEL)
        {
         scoreCounter.add(time.getTimeScore());
            doTime = true;
        }
        
        if(doTime == true){
            timeActs++;
            if(timeActs == 250){
                winGame();
            }
        }
    }