adding a player function to facilitate player objects