generate works now. need to write a quick 'showBoard' function so
that the original module still works by command line.