private void SetCharacter(ClientServerConnection connection, int nr, string player, string character, bool chosen) { if (chosen) { connection.ConfirmCharacter(nr, character); } else { connection.CancelCharacter(nr); } }