Fix a bug calculating game time