Added functionality to complete the game cycle, including calculating
player scores.
Added logging, replaced all calls to print with the logging API.
Fixed broken tests.