updated playerinfo to a map