private void setIconPositionAndVisibility(String labelName, ImageIcon imgicon, boolean isVisible)
    {
        //"woman" 80,50, "smallDragon" 240,250,   "genie" 280,150, "onyxia" 0,0
        if (labelName.equals("woman"))
        {
            womanLabel.setIcon(imgicon);
            mainpanel.add(womanLabel);
            womanLabel.setBounds(80,50, imgicon.getIconWidth(), imgicon.getIconHeight());
            womanLabel.setVisible(isVisible);
        }
        else if (labelName.equals("small_dragon"))
        {
            smallDragonLabel.setIcon(imgicon);
            mainpanel.add(smallDragonLabel);
            smallDragonLabel.setBounds(260,250, imgicon.getIconWidth(), imgicon.getIconHeight());
            smallDragonLabel.setVisible(isVisible);
        }
        else if (labelName.equals("genie"))
        {
            genieLabel.setIcon(imgicon);
            mainpanel.add(genieLabel);
            genieLabel.setBounds(280,150, imgicon.getIconWidth(), imgicon.getIconHeight());
            genieLabel.setVisible(isVisible);
        }
        else if (labelName.equals("onyxia"))
        {
            onyxiaLabel.setIcon(imgicon);
            mainpanel.add(onyxiaLabel);
            onyxiaLabel.setBounds(0,0, imgicon.getIconWidth(), imgicon.getIconHeight());
            onyxiaLabel.setVisible(isVisible);
        }
        
        if (labelName.equals("keys"))
        {
            keysLabel.setIcon(imgicon);
            mainpanel.add(keysLabel);
            keysLabel.setBounds(125,315, imgicon.getIconWidth(), imgicon.getIconHeight());
            keysLabel.setVisible(isVisible);
        }
        else if (labelName.equals("bat"))
        {
            batLabel.setIcon(imgicon);
            mainpanel.add(batLabel);
            batLabel.setBounds(253,131, imgicon.getIconWidth(), imgicon.getIconHeight());
            batLabel.setVisible(isVisible);
        }
        else if (labelName.equals("sword"))
        {
            swordLabel.setIcon(imgicon);
            mainpanel.add(swordLabel);
            swordLabel.setBounds(20,230, imgicon.getIconWidth(), imgicon.getIconHeight());
            swordLabel.setVisible(isVisible);
        }
        else if (labelName.equals("book"))
        {
            bookLabel.setIcon(imgicon);
            mainpanel.add(bookLabel);
            bookLabel.setBounds(495,195, imgicon.getIconWidth(), imgicon.getIconHeight());
            bookLabel.setVisible(isVisible);
        }
        else if (labelName.equals("chest"))
        {
            chestLabel.setIcon(imgicon);
            mainpanel.add(chestLabel);
            chestLabel.setBounds(170,150, imgicon.getIconWidth(), imgicon.getIconHeight());
            chestLabel.setVisible(isVisible);
        }
                
                    
        
    }