broken up the double chance code into a shared module and separate scripts for mine and jack's code