public void Log(Coin.FACE face) { if (history.Count == 0) { history.Add(new FaceCount(1, face)); } else { int index = history.Count - 1; FaceCount last = history[index]; if (last.GetFace().Equals(face)) { last.IncrementCount(); history[index] = last; } else { history.Add(new FaceCount(1, face)); } } }