public void updateGUIBasedOnNumOfCells(int numOfCells)
    {
        if(numOfCells < 8)
        {
            this.jSpinner9.setVisible(false);
            this.jSpinner17.setVisible(false);
            this.jLabel9.setVisible(false);
        }else
        {
            this.jSpinner9.setVisible(true);
            this.jSpinner17.setVisible(true);
            this.jLabel9.setVisible(true);
        }
        
        if(numOfCells <7)
        {
            this.jSpinner7.setVisible(false);
            this.jSpinner16.setVisible(false);
            this.jLabel8.setVisible(false);
        }else
        {
            this.jSpinner7.setVisible(true);
            this.jSpinner16.setVisible(true);
            this.jLabel8.setVisible(true);
        }
        
        if(numOfCells < 6)
        {
            this.jSpinner6.setVisible(false);
            this.jSpinner15.setVisible(false);
            this.jLabel7.setVisible(false);
        }else
        {
            this.jSpinner6.setVisible(true);
            this.jSpinner15.setVisible(true);
            this.jLabel7.setVisible(true);
        }
        
        if(numOfCells < 5)
        {
            this.jSpinner5.setVisible(false);
            this.jSpinner14.setVisible(false);
            this.jLabel6.setVisible(false);
        }else
        {
            this.jSpinner5.setVisible(true);
            this.jSpinner14.setVisible(true);
            this.jLabel6.setVisible(true);
        }
        
        if(numOfCells < 4)
        {
            this.jSpinner4.setVisible(false);
            this.jSpinner13.setVisible(false);
            this.jLabel5.setVisible(false);
        }else
        {
            this.jSpinner4.setVisible(true);
            this.jSpinner13.setVisible(true);
            this.jLabel5.setVisible(true);
        }
        
        if(numOfCells < 3)
        {
            this.jSpinner3.setVisible(false);
            this.jSpinner12.setVisible(false);
            this.jLabel4.setVisible(false);
        }else
        {
            this.jSpinner3.setVisible(true);
            this.jSpinner12.setVisible(true);
            this.jLabel4.setVisible(true);
        }
        
        if(numOfCells < 2)
        {
            this.jSpinner2.setVisible(false);
            this.jSpinner11.setVisible(false);
            this.jLabel3.setVisible(false);
        }else
        {
            this.jSpinner2.setVisible(true);
            this.jSpinner11.setVisible(true);
            this.jLabel3.setVisible(true);
        }
        
    }