Life-like cellular automata in C++ with SDL