private void makeSmoke()
    {
        count--;
        // the -15 makes the ball stop producing smoke 15 pixels from base. 
        //This fixes the Actor not in World bug as it will no longer go searching for getY of ball        
        if (count == 0 && (getY() < getWorld().getHeight()-20) ) {
            getWorld().addObject ( new Smoke(), getX(), getY());
            count = 2;
        }
    }