added a random number engine for the computer AI