public static Dip getDipByName(String name)
    {
    	for (int i = 0; i < dips.length; i++)
    	{
    		if (dips[i].getName().equals(name))
    		{
    			return dips[i];
    		}
    	}
    	return null;
    }