playing with flags variable. Still need to figure out ncurses and linker