ncurses game of life (C)