Just press green flag. This system automatically decides, which costume to pick for each tile based on the 4 neighbours surrounding it. As for the pattern, it is made using a list similar to my game called "The adventures of Mr. Protagonist: Disk 1".