The universe goes on for an infinite amount of time, and after an infinite amount of time it will restart again, doing the same things.
Everything will happen within that infinite amount of time, which means that when you die, 'death' will be an infinitesimal moment in time between your old brain and your new form of consciousness your mind will become, such as in some computer or becoming some crazy god causing havoc all over the universe, or just in a brain. This could happen by your brain's atoms being rearranged exactly as they were before you died in some new body or something to sustain it, which means when you 'die', (to you) you are instantly reincarnated into that mind. I'm agnostic in a way, because this universe might have a god, but overall throughout the infinitely-dimension multiverse, I don't believe some higher being exists throughout everything.