Add initialize function to soldier class