// used for sorting with other instances based on distance between tower and enemy
    public int CompareTo(object obj)
    {
        if (obj == null)
        {
            return(1);
        }
        LaserEnemyClass other = obj as LaserEnemyClass;

        if (other != null)
        {
            return(this.distance.CompareTo(other.distance));
        }
        else
        {
            throw new ArgumentException("Object is not a LaserEnemyClass");
        }
    }
 // assigns an enemy from a previously constructed instance to this one
 public void assignEnemy(LaserEnemyClass obj)
 {
     this.enemy    = obj.enemy;
     this.distance = obj.distance;
 }