AI / Win detection cleanup