adding obstacles and collision detection