void InitGame()
 {
     //initialise game map
     mapManager = GetComponent <mapmanager>();
     mapManager.InitMap();
     //initialise UI
     foodtext         = GameObject.Find("food").GetComponent <Text>();
     failtext         = GameObject.Find("failed").GetComponent <Text>();
     failtext.enabled = false;
     updatefoodtext(0);
     player       = GameObject.FindGameObjectWithTag("Player").GetComponent <p1>();
     day          = GameObject.Find("day").GetComponent <Image>();
     daytext      = GameObject.Find("daytext").GetComponent <Text>();
     daytext.text = "Day " + level;
     Invoke("hideblack", 2);
     //initialise parametre
     win = false;
     cpulist.Clear();
 }