public void PlayGame() {
        if (lifepoints <= 0){
            gameover = true;
            //out of life
        }
        
        if (gameover == true){
            draw.gameEnded();
        }
        
        if (isItMovingTime){
           moveOwl(); 
        }
        
        if (hitMine()){
            boom = true;
            takeLives();
        }   
        
        if (hitGoal()){
            goNextLevel();
            owl.setEnergy();
            owl.setOwl(levels.get(whichLevel).getOwlieStartX(), levels.get(whichLevel).getOwlieStartY());
        }
        
        isItMovingTime = false;
           
        repaintField(); 
    }