update obstacle movement