Added code to close the shapes of command blocks