Fixed some errors in the scoring system.