public Tickerthread(JSONConverter server, Server socket)
 {
     mainCore = new MainCore();
     this.server = server;
     this.socket = socket;
     mainCore.initializeLanes();
 }
        public static void normal()
        {
            Console.WriteLine("we are running the normal program");
            JSONConverter json = new JSONConverter();

            Server server = new Server(json);

            Thread newThread = new Thread(new ThreadStart(server.createListener));
            Console.WriteLine("we are creating the server(communication)");
            newThread.Start();

            Tickerthread ticker = new Tickerthread(json, server);
            json.setServerTicker(server, ticker);
            Thread secondThread = new Thread(ticker.Run);
            Console.WriteLine("we are starting the second thread! so the program is running now (cpu )");
            secondThread.Start();

            Console.ReadLine();
        }
 /// <summary>
 ///  constructor not nessecary
 /// </summary>
 public Server(JSONConverter json)
 {
     this.json = json;
 }