public void Assign(int number) { for (int i = 0; i < Chips.Count; ++i) { if (Chips[i] == int.MaxValue) { Chips[i] = number; break; } } Chips.Sort(); }