Added a pieces factory