refactor ncurses windows and stuff into some structs