private void HandleMarkButtonClick(int index) { if (matchesStore.IsLoading) { return; } OnMarksUpdate?.Invoke(); // Update the match var updatedMatch = match; updatedMatch.marks[index] = GetCurrentPlayer().mark; matchesStore.UpdateMatch(updatedMatch); }