private void CheckState(Empire empire, EmpireController empireController, ref State currentState)
 {
     if (!currentState)
     {
         currentState = (config as DefaultConfig).GetGrow();
     }
     if (empire.IsAlive())
     {
         // TODO Simple code to set off war
         DiplomacyController diplomacy = empireController.GetDiplomacyController();
         if (empireController.GetEnemyBorderSystems().Count > 0)
         {
             foreach (SolarSystem system in empireController.GetEnemyBorderSystems())
             {
                 if (diplomacy.GetDiplomacy(system.GetEmpire()).relationship != Relationship.War)
                 {
                     diplomacy.DeclareWar(empire, system.GetEmpire());
                 }
             }
             if (currentState.GetStateName() != "Attack")
             {
                 currentState = (config as DefaultConfig).GetAttack();
             }
         }
         else
         {
             CheckGrowOrBuildUp(empire, empireController, ref currentState);
         }
     }
 }