public void actionPerformed(ActionEvent e)
    {
        String a = e.getActionCommand();
        
        if (a.equalsIgnoreCase("Random"))
        {
            RandomClient c = new RandomClient();
            c.start();
        }
        if (a.equalsIgnoreCase("Bad"))
        {
            BadClient c = new BadClient();
            c.start();
        }
        if (a.equalsIgnoreCase("Human"))
        {
            HumanClient c = new HumanClient();
            c.start();
        }
        if (a.equalsIgnoreCase("AI"))
        {
            AIClient c = new AIClient();
            c.start();
        }
        if (a.equalsIgnoreCase("Reconnect"))
        {
            try
            {
                KalahaServer s = KalahaServer.getInstance();
                s.stop();
                int p = Integer.parseInt(portField.getText());
                KalahaMain.port = p;
                s.start();
            }
            catch (Exception ex)
            {
                addText("Reconnect failed: " + ex.getMessage());
            }
            
        }
    }