Fixing bugs with calculation of points scores.

Including implementation of a debug mode, which outputs the
calculations performed for each player.