Created init function for piece creation.
Fixed button element.