A test for winningPlayer revealed that there was an error in the loop: It was iterating the wp_SCORES which would not point us to the proper position in the board. Fixed by using xrange.