A basic grid display in C using ncurses library