public void OnMouseDown() { if (myturn && !gm.someoneplayed && !won) { gm.moveplayer(gameObject, currentpoint); } }