Update TestWin.java

fix check loop bug