added auto endgame scenario +fixed stuff