Altered the getPorts function to use the port number as the index instead of a randomly generated number.  Starting to rework the patch panel code now. #191