collision detection tested for individual tasks, need to refactor for array