fixed calculatePostion bug AI