// displays stats from tower gameObject press
    public void UpdateTheTowerInfo()
    {
        // finds the selected object
        selectedTower = GameObject.FindGameObjectWithTag("Selected");

        towerStats = selectedTower.GetComponent <TowerStats> ();

        price.text    = "Price: " + towerStats.price;
        damage.text   = "Damage: " + towerStats.GetDamage();
        fireRate.text = "Fire Rate: " + towerStats.fireRate;
        range.text    = "Range: " + towerStats.range;

        dmgPerSec = towerStats.GetDamage() / towerStats.fireRate;
        dps.text  = "DPS: " + dmgPerSec;
    }
    // displays stats from button press
    public void Stats(string tower)
    {
        if (tower == "basicTower")
        {
            towerNumber = 0;
        }
        if (tower == "sniperTower")
        {
            towerNumber = 1;
        }

        towerStats = Towers[towerNumber].GetComponent <TowerStats> ();

        price.text    = "Price: " + towerStats.price;
        damage.text   = "Damage: " + towerStats.GetDamage();
        fireRate.text = "Shots per second: " + 1 / towerStats.fireRate;
        range.text    = "Range: " + towerStats.range;

        dmgPerSec = towerStats.GetDamage() / towerStats.fireRate;
        dps.text  = "DPS: " + dmgPerSec;
    }