C++ Threads and the Game of Life