changed player reference to player id for json