created Game#resolve. made setPhaseCommitted resolve the game in a transaction if commit == true.