private void cleanupList(){
  Iterator<PlayerPositionEntry> itr=playerPositions.iterator();
  while (itr.hasNext()) {
    PlayerPositionEntry entry=itr.next();
    if (entry.hasPlayerMovedAway()) {
      itr.remove();
    }
  }
}

private void cleanupList ( ) { Iterator < PlayerPositionEntry > itr = playerPositions . iterator ( ) ; while ( itr . hasNext ( ) ) { PlayerPositionEntry entry = itr . next ( ) ; if ( entry . hasPlayerMovedAway ( ) ) { itr . remove ( ) ; } } }
removes players that have moved away from the list
