Of-course this is the million dollar question.
Certainly no one known the purpose of life, better than the Creator.
If the programmer of a game would obviously know better than the player its purpose and how to win, the same applies to the Creator and us.
G-d gives us in fact two ideals – as everything contains a body and a soul – likewise the Torah.
In the Body of the Torah, we find how to live as a Jew, such as keeping kosher, being kind, forgiving etc.
However the Kabbalah/Chassidus, the soul of the Torah…
In the soul of the Torah, we discover that we are infinite – in fact the universe, and of course its source, G-d and the Torah (the universe’s blueprints) are likewise.
Practically this means, each and every one of us has like a solider, a duty to always be looking for the next Mitzvah, act of goodness and kindness – you see, the goal of Torah is to create civility, the goal of the soul, is to create unity.