public static void add(AObject object) throws Exception // add an object to the stage
    {

        if (object instanceof FailBox)
        {
            endZone = (FailBox) object;
        }
        else
        {
            if(object instanceof Pinball)
            {
                pinball = (Pinball) object;
            }
            else
            {
                throw new Exception("Object not supported");
            }
        }
    }