//Uses reccursive function to go through neighbours in neighbourslist and count balls with same color
    public List <GameObject> CountSameColors()
    {
        List <GameObject> tempList = new List <GameObject>();

        tempList.Add(gameObject);
        foreach (GameObject gobject in neighbours)
        {
            ProjectileController objectScript = gobject.GetComponent <ProjectileController>();
            if (!objectScript.beenChecked && gobject.renderer.material.color == gameObject.renderer.material.color)
            {
                objectScript.beenChecked = true;
                tempList.AddRange(objectScript.CountSameColors());
            }
        }
        return(tempList);
    }