fixed checkwin