public boolean hasEnded(){
  if (length > 0) {
    return true;
  }
  if (players != null && players.size() > 0) {
    for (    Player player : players) {
      if (player.Win()) {
        return true;
      }
    }
  }
  return false;
}

public boolean hasEnded ( ) { if ( length > 0 ) { return true ; } if ( players != null && players . size ( ) > 0 ) { for ( Player player : players ) { if ( player . Win ( ) ) { return true ; } } } return false ; }
determines if this play appears to have ended .
