Final touches on game end detection