public void NextStep() { _outputText.text = ""; Context context = new Context(_inputText.text, ref _boardManager); if (context.IsAllRight()) { _boardManager.MakeStepForward(context.StartPosition, context.EndPosition); } else { System.Collections.Generic.Stack <string> Errors = context.GetErrors(); while (context.GetErrors().ToArray().Length > 0) { _outputText.text += $"{Errors.Pop()}\n\n"; } } }