nice ncurses but awfull code :)