add getter and setter to Piece