Added addObstacles