added function to add players to a context