added a getPlayers method