Replace for-loop with std::for_each()
Replace for-loop with std::for_each()

Gets rid of normal for-loop boilerplate.

std::accumulate() results in an O(n^2) algorithm.

MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess,MarkZH/Genetic_Chess