     button25.scanState();
 }
 
-//LiquidCrystal_I2C lcd(0x3f, 16, 2); // set the LCD address to 0x3f for a 16 chars and 2 line display in prototype board
+// LiquidCrystal_I2C lcd(0x3f, 16, 2); // set the LCD address to 0x3f for a 16 chars and 2 line display in prototype board
 LiquidCrystal_I2C lcd(0x27, 16, 2); // set the LCD address to 0x27 for a 16 chars and 2 line display in Proteus
 const char b11 = B11_PIN, b12 = B12_PIN, b13 = B13_PIN, b14 = B14_PIN, b15 = B15_PIN, b21 = B21_PIN, b22 = B22_PIN, b23 = B23_PIN, // buttons
 b24 = B24_PIN, b25 = B25_PIN,

            {
                lcd.setCursor(0, 0);
                lcd.print("Reds win!   ");
                log ("Reds win at "+String(currentMillis)+" after "+String(previousMillis));
                game = GAME_PERFORMED;
                newxy(6, 2, REDS);
                return;

void in_game()
{
    lcd.setCursor(0, 1);
    lcd.print("Gs: " + String(gScore) + "   Rs: " + String(rScore) + " ");
    currentMillis = millis();
    if (!ballkick && ((currentMillis - previousMillis) >= 3000))
    // offside, мяч не в игре 3 с
    {
        game = GAME_OFFSIDE;
        return;
    }
    else
        if (ballkick && ((currentMillis - previousMillis) >= 500) && y == 2 && (x + x - xPrev == 0 || x + x - xPrev == 11))
        // мяч не перехвачен за 0.5 с
        {
            newxy(x + x - xPrev, y + y - yPrev, vector);
            return;
        }
    else
        if (ballkick && ((currentMillis - previousMillis) >= 300))
        // мяч не перехвачен за 0.3 с
        {
            newxy(x + x - xPrev, y + y - yPrev, vector);
            return;
