// Get any neighbor that does not match the owner of this territory public Territory GetEnemyNeighbor() { for (Territory t : neighbors) { if (!t.CheckOwner().equals(this.ownedby)) { return t; } } return null; }