Added function to generate the board for each level.