Re-commit of EndGame version

Downloaded and re-comitted version
4b74f8adad2768ba0b3a334fda22f38bd1c02253 due to the commits getting
screwed up.