Add method getPiece()
Recursive parsing data to array
Refactoring