Added best_move and calc_util functions