not working loop for generating buildigns