Fixing end-game analyzing