set logic for turnController