added random number generator to generate the board