updated function is_UAV_able_back_home and set up a variable to count task_num
removed duplicated is_UAV_able_back_home
fixed the status change bug