Code Reformat and improve 8ball

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