Added some code and fix some win bug.

Need to put who's O and X