add obstacles.