move end of game scoring to Scoring module and add tests