public void TryPaintTarget(int x, int y, Player player) { if ((x > 0 && x < m_territoryManager.m_nbrXTerritories - 1) && (y > 0 && y < m_territoryManager.m_nbrYTerritories - 1)) { Territory targetT = m_territoryManager.m_battleField[x, y]; targetT.FactionChange(player); } }