fix reset & win condition