added Generate function to SubBoard