public void actionPerformed(ActionEvent e)
    {
        String a = e.getActionCommand();
       
        if (a.startsWith(Commands.MOVE) && running)
        {
            try
            {
                out.println(a + " " + player);
                String reply = in.readLine();
                if (reply.equals(Errors.WRONG_PLAYER))
                {
                    addText("Move failed: Not my turn");
                    myTurn = false;
                }
                else if (reply.equals(Errors.AMBO_EMPTY))
                {
                    addText("Move failed: Ambo is empty");
                }
                else
                {
                    updateBoard(reply);
                    myTurn = false;
                }    
            }
            catch (Exception ex)
            {
                addText("Failed to send Move command: " + ex.getMessage());
            }
        }
    }