Truth table generation partially implemented (getting correct input/output table rows in debug messages). Added a 'Restart' button to the menu.