private void teleportAway(int turn){
  Iterator<PlayerPositionEntry> itr=playerPositions.iterator();
  while (itr.hasNext()) {
    PlayerPositionEntry entry=itr.next();
    if (entry.getTurn() + GRACE_PERIOD_IN_TURNS < turn) {
      itr.remove();
      KeepFreeArea keepFreeArea=entry.getKeepFreeArea();
      Player player=entry.getPlayer();
      if (player == null) {
        continue;
      }
      player.teleport(keepFreeArea.getZone(),keepFreeArea.getX(),keepFreeArea.getY(),Direction.DOWN,player);
    }
  }
}

private void teleportAway ( int turn ) { Iterator < PlayerPositionEntry > itr = playerPositions . iterator ( ) ; while ( itr . hasNext ( ) ) { PlayerPositionEntry entry = itr . next ( ) ; if ( entry . getTurn ( ) + GRACE_PERIOD_IN_TURNS < turn ) { itr . remove ( ) ; KeepFreeArea keepFreeArea = entry . getKeepFreeArea ( ) ; Player player = entry . getPlayer ( ) ; if ( player == null ) { continue ; } player . teleport ( keepFreeArea . getZone ( ) , keepFreeArea . getX ( ) , keepFreeArea . getY ( ) , Direction . DOWN , player ) ; } } }
teleports players out of the restricted area
