addded winningCondition