public void renderImages(Graphics g,Image backgroundImage, Player player, FallingObjects fallingObjects){
        
        Graphics2D g2d = (Graphics2D) g;
        
        g2d.drawImage(backgroundImage, 0, 0,null);
        g2d.drawImage(player.getImage(), player.getX(), player.getY(), null);
        
        for (int i=0; i < fallingObjects.GetFallingObjects().size();i++)
        {
            RainDrop rainDrop = (RainDrop) fallingObjects.GetFallingObjects().get(i);
            g2d.drawImage(rainDrop.getImage(), rainDrop.getX(), rainDrop.getY(),null);
        }
    }