make_move function finished