changed from player_id to player object