public int FindRouterPacket(int seq)
    {
        int result = -1;
        //search for the sequence number
        for(int x=0; x<internalMemory.size();x++)
        {
            //compare each packet sequence with the sequence number
            if(internalMemory.get(x).GetSequenceNumber() == seq)
            {
                //set the index of packet if sequence matches
                result = x;
            }
        }
        
        //return index of packet
        return result;
    }