logic on adding obstacles for each level