public GameEngine(){
        //create new player
        player1 = new Player();
        
        fallingObjects = new FallingObjects();
        
        collisionDetection = new CollisionDetection();
        
        gameRendering =  new GameRendering();
        
        //add key listener
        addKeyListener(new KeyListener(player1));
        
        //focus on panel
        setFocusable(true);
        
        //background image
        ImageIcon i = new ImageIcon(getClass().getResource("/Images/clouds_background.png"));
        backgroundImage = i.getImage();
        
        time = new Timer(5,this);
        time.start();
    }