added setupPieces method