public void haswon()
 {
     won = true;
     Debug.Log("won");
     gm.checkifwholewon(gameObject.tag);
 }