updated 8ball code