Generates obstacles in the first row on an interval