Updated .equals() method in Piece.java