Added graphics using ncurses. currently causes segfault