The purpose of life is joy.
In the spiritual, life can be seen as a movie where one actor plays all the roles.
In the physical, life can be seen as a game that the player enjoys and wants to play. In order to win, the player must travel at a consistent pace, while opponents (rays) try to slow them down by providing lessons that distract. The rays do not do this for the sole purpose of dissuading. They give ray-specific lessons to teach the player how to accept all sides of themselves and make sound decisions. The player continues playing the game (reincarnation) until they win.