changed the way obstacles are represented internally