moved generate random number out of newGame