checkForObstacles

need to add checkForObstacles() call in main