public Player PlayerFromID(int id) { foreach (Player player in Players) if (player.ID == id) return player; throw new KeyNotFoundException("Could not find player from ID: " + id); }