updated obstacle movement code