set logic for turnController
Merge pull request #9 from adolfo0620/updateDom

set logic for turnController