When I run the program, it can work. But the obstacles are motionless. So How do I modify the program to run properly?