Changed allTasks to global instance

allTasks is the program’s local copy of task list.