Added function to instantiate players