title: Trying to prevent duplicate values to be added to an array.
body: <p>Having an issue with my project when it comes to adding a duplicate value to an array on a click event.</p>
  
  <p>when I push the clicked item's value to the array <code>openedCards.push(card);</code> the code allows for multiple item values to be added to the array thus creating a matched value with a single item. </p>
  
  <p>I have tried wrapping this code like so <code>if ($.inArray(card, openedCards) &lt; 0)openedCards.push(card);</code> i see that the match class is no longer being added to matching pairs, or any values for that matter. </p>
  
  <p>here is the <a href="http://jsfiddle.net/logikevcover/8auxLwtm/3/" rel="noreferrer">Here is the jsfiddle</a></p>