draw grid in ncurses