added win condition and DEAD protocol