the "end civilization" button doesn't end the game, it ends the town you've been building and gives you the option to open the upgrade menu. it's kinda like a prestige mechanic: you work on the town and earn upgrade points, and then you go spend your upgrade points and start the town again, and each time it goes faster.