Fixed same bug for agents applying actions and a bug copying the board