Update checkForObstacles