Added toJSON and loadJSON method for match. Refactored Piece loading. Refactored Schema loading.
Piece loading refactoring