function to get a player via id