public static function checkStartStopServerState()
 {
     $con = Database::getCon();
     $res = $con->query("SELECT * FROM gameserver " . "WHERE status = " . GAMESERVER_STATUS_CHECK_START . " " . "OR status = " . GAMESERVER_STATUS_CHECK_STOP);
     if ($res->num_rows) {
         $d = array();
         while ($row = $res->fetch_assoc()) {
             $gs = new Gameserver($row["id"], $row);
             if ($gs->statusWaitedFree()) {
                 $time = time();
                 $lastUpdate = strtotime($gs->GetData('lastStatusUpdate'));
                 if ($gs->isRunningOnServer()) {
                     echo $gs->getTemplate()->getData("gameName");
                     echo "-Server started stop..";
                     $gs->updateStatus(GAMESERVER_STATUS_RUNNING);
                 } else {
                     echo $gs->getTemplate()->getData("gameName");
                     echo "-Server wasnt started.";
                     $gs->updateStatus(GAMESERVER_STATUS_IDLE);
                 }
             }
         }
         return $d;
     } else {
         return false;
     }
 }