Your logic is flawed, my friend, because you said that god has no beginning and has no end. That, alone, is no reason to believe that a god exists.
Energy, by nature, cannot be created nor destroyed. Therefore it is beginningless and endless. So there are other possibilities when it comes to the creation of the universe.