Simulation theory, the end of humanity and the war with the machines