add tui game and tui logic