@Override
    public void actionPerformed(ActionEvent e){
        
        gameLost = collisionDetection.checkCollision(player1,fallingObjects);
        
        fallingObjects.SpawningFallingObject();
        
        fallingObjects.MoveandRemoveFallingObjects();      
        
        player1.move();
        
        repaint();
    }