Added data structures and ncurses stuff