Adding the Build button

Added the Build button and the block generation code