finnished buildings and connected commandID with buildings