Computer predicts end of civilisation