removed use of rnd in generate_move()