Add ended_at to game model, and ensure rescoring is always done at end of game