trying to fill a grid with ncurses