Code crashes the second time it enters the MakeNewBoard function from within the NewConfigs() function.

The second for loop in the NewConfigs() function needs to be debugged.