Randomize generated moves to prevent same game due to alpha-beta pruning. Adjust the evaluation for the color