NCurses output working and debugged