Added a soldierIndex to each soldier which will help in herding and formations

Check the diff of the pull request for changes