end game almost without errors