And I think you can replace the old

```c
if (round == 2)
  clstr[count] = *g2;
count++;
```

with

```c
clstr[count++] = *g2;
```

which is a very common idiom for the `push_back` operation on arrays.