Moved more code, so termbox import in one place