Something doesnt work with ncurses.h library