public static void reset(String TableNum)	//resets button when table is freed up
    {
    	for(int x=0; x<9; x++)	//loops until finds table#
    	{
    		if(((AbstractButton) panel.getComponent(x)).getText().equals(TableNum))
    		{
    			((AbstractButton) panel.getComponent(x)).setIcon(free);	//changes icon back
    			((Component) panel.getComponent(x)).setEnabled(true);	//sets clickable 
    		}
    	}
    }