added a task to determine what to do when the entity goes out of bounds