saving player to json