Added player initalisation function.