added rank type reward, moved nextTask() from usertask to UI class