Changed input
Made it possible to merge a structure to any side of a block