Rules to build roofs:
can be built with only one platform, floor, beam or ground bellow it
can be built on two walls, surrounding ground, surrounding platform, surrounding floor
can be built on one wall in the middle
can be built on one wall if there are 2 tiles of surrounding roof
columns are not supported