This is the project code as of the end of the twenty first day of Devember. The only progrss made today was to include some extra debugging logic and then fix the horrible (and predictably stupid) bug that I ran into yesterday. As such the players swap turns and swap balls now.