refactored: arraylist to array
array
returns array
created PieceObject