fixed checkwin to 0