Updated Piece java file