added logic to change match turn api to a Json based