public Task ChooseNewTask()
	{
		Task task = null;
		boolean found = false;
		int curPos = control.subtasks.indexOf(control.curTask);
		
		while(!found)
		{
			if(curPos == (control.subtasks.size() - 1))
			{
				found = true;
				task = null;
				break;
			}
			
			curPos++;
			
			task = control.subtasks.elementAt(curPos);
			if(task.CheckConditions())
			{
				found = true;
			}
		}
		
		return task;
	}