public void AddMatch(string match) { Matches.Push(match); Position += match.Length; Done = (Position >= Length); }