Fixed a bug causing games to end prematurely