@Override
  public boolean equals(Object obj) {
    if (this == obj)
      return true;
    if (obj == null)
      return false;
    if (getClass() != obj.getClass())
      return false;
    Piece other = (Piece) obj;
    if (curRotation != other.curRotation)
      return false;
    if (offsetX != other.offsetX)
      return false;
    if (offsetY != other.offsetY)
      return false;
    return true;
  }