get player by id method