implemented wrap-around for food and predators