update obstacles behavior