Conway's Game of Life written in C using ncurses