void Awake()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
 void Start()
 {
     gm = GameObject.FindGameObjectWithTag("GM").GetComponent <checkpoint_master>();
 }