Generates obstacles in the first row randomly