 unsigned long currentMillis = 0, previousMillis = 0;
 boolean ballkick = false, debug = true, sdEnable = false;
 File logFile;
-
-void log(String _str, String _lcdStr){
-    if ( debug ) {
+void log(String _str, String _lcdStr)
+{
+    if (debug)
+    {
         Serial.println(_str);
         lcd.setCursor(0, 0);
         lcd.print("                ");
         lcd.setCursor(0, 0);
         lcd.print(_lcdStr);
-        if ( sdEnable ) {
-            logFile.print(millis()+"    ");
+        if (sdEnable)
+        {
+            logFile.print(millis() + "    ");
             logFile.println(_str);
         }
     }
 }
 
-void log(String _str){
-    if ( debug ) {
+void log(String _str)
+{
+    if (debug)
+    {
         Serial.println(_str);
-        if ( sdEnable ) {
-            logFile.print(millis()+"    ");
+        if (sdEnable)
+        {
+            logFile.print(millis() + "    ");
             logFile.println(_str);
         }
     }
 }
 
-void pcm(char* _filename) {
-    if (digitalRead(DEBUG2_PIN)) {
+void pcm(char * _filename)
+{
+    if (digitalRead(DEBUG2_PIN))
+    {
         audio.play(_filename);
     }
 }

    // проверяем наличие файла на SD-карте
    while (1)
    {
        _rand=(unsigned long)random(999999);
        _filename = String(_rand, HEX)+".txt";
        if (SD.exists(_filename))
        {
            // если файл с именем существует, то ...

l3b = L3B_PIN, l4r = L4R_PIN, l4g = L4G_PIN, l4b = L4B_PIN;
const char field[12][5] =
{
    {
        - 1, -1, l109, -1, -1
    },
    {
        - 1, 1, l108, 3, -1
    },
    {
        - 1, l210, l204, l201, -1
    },
    {
        - 1, l103, l107, l112, -1
    },
    {
        - 1, l211, l205, l202, -1
    },
    {
        - 1, -1, l106, -1, -1
    },
    {
        - 1, -1, l206, -1, -1
    },
    {
        - 1, l102, l105, l111, -1
    },
    {
        - 1, l212, l207, l203, -1
    },
    {
        - 1, l101, l104, l110, -1
    },
    {
        - 1, 2, l208, 4, -1
    },
    {
        - 1, -1, l209, -1, -1
    }
};

int game = GAME_START, rScore = 0, gScore = 0,
