The purpose of the human race as a whole is dependent upon who is answering the question. For the majority, it is the co-existing and getting along of humans and the quest to carry on life. But, Christians have other view points.
They believe it is to settle the score between good and evil so those who are saved from eternal damnation can live in a place called heaven where there will only be good. Others have totally different views. So, the purpose of the human race totally depends upon individuals and their core beliefs.