@Override public boolean equals(Object object){
  if (this == object) {
    return true;
  }
  if ((null == object) || (getClass() != object.getClass())) {
    return false;
  }
  final Player other=(Player)object;
  return other.id == id;
}

@ Override public boolean equals ( Object object ) { if ( this == object ) { return true ; } if ( ( null == object ) || ( getClass ( ) != object . getClass ( ) ) ) { return false ; } final Player other = ( Player ) object ; return other . id == id ; }
two players are equal if their ids are equal
