Updated deleteTask:

Changed deleteTask function to remove the object at a specific index of
the taskArray instead of looking for and then deleting the identical
task object