Added board generation code