public Object makeDefaultValue(Class type)
        {
            if (type == int.class)
                return new Integer(0);
            else if (type == boolean.class)
                return Boolean.FALSE;
            else if (type == double.class)
                return new Double(0);
            else if (type == String.class)
                return "";
            else if (type == Color.class)
                return Color.BLACK;
            else if (type == Location.class)
                return currentLocation;
            else if (Grid.class.isAssignableFrom(type))
                return currentGrid;
            else
            {
                try
                {
                    return type.newInstance();
                }
                catch (Exception ex)
                {
                    return null;
                }
            }
        }