Minor improvements

- Moved initializing dynamic obstacle code to DynamicObstacle class
- Fixed the positioning of dynamic obstacles (using weighted random
value)