score-tracking and better endgame handling