The purpose of life is not to be happy. It is to be useful, to be honorable, to be compassionate, to have it make some difference that you have lived and lived well.
As to the gods, I do not know whether they exist or not, nor what they are like in form; for there are many things that hinder sure knowledge, the obscurity of the matter and the shortness of human life.