void UpdateAutomata()
        {
            CurrentGenerationLabel.Content = $"{gameField.CurrentGeneration}";

            gameField.ChangeField(ruleSet);

            switch (isOneDimensional)
            {
            case true:     // 1D automata
                if (gameField.CurrentGeneration > height)
                {
                    GameField.Height += cellSize;
                    GameFieldScroll.ScrollToBottom();
                    GameField.Children.RemoveRange(0, width);
                }
                DrawAutomata();
                break;

            case false:     // 2D automata
                UpdateAutomataView();
                break;
            }
        }