update obstacles