fixed one minor mistake in the obstacle carving, the last commit before refactoring