added movement to obstacle code