adding Win Condition Functionality