Added functionality to generate a random board