Playing with ncurses to create a text adventure game