   {
     init_gol();
   }
+
+  return same;
 }
 
 

        }
        else if(c == 1) //del
        {
          frame[x][y] = 0;
          color = DEAD_COLOR;
        }
        else if(c == 2) //die
        {
          frame[x][y] = 1;
          color = DIE1_COLOR;
        }
        else if(c <= DEL_CELL) //die

    }
    else
    {
      if(play_gol()) //no generation change
      {
        if(++same > 50) //no change since 50 runs-> restart
        {
          same = 0;
          init_gol();
        }
      }
      else
      {
        same = 0;
      }
      draw_gol();
    }

