Code Reformat and improve 8ball

This makes the code so much neater, and eaiser to read.