public void checkCard(Card c, int selectedCardRow, int selectedCardCol){
	  
	  Card otherActive;
	  //printArray(cards);
	  
	   for(int j = 0; j < A1Constants.NUMBER_OF_COLS; j++){
		    otherActive = cards[currentRow[j]][j];
		    
		    if(otherActive.isActive()){ //only compare cards if they are both active
		      
		    	if(otherActive.getSuit() == c.getSuit() && otherActive.getValue() > c.getValue()){ //same suit and greater value
		    		c.setActive(false);
		    		c.setHasBeenRemoved(true);
		    		userScore = userScore + 1;
		    		
		    		if(selectedCardRow > 0){
		    		cards[selectedCardRow -1 ][selectedCardCol].setActive(true);
		    		}
		    		
		    		if(currentRow[selectedCardCol] > 0){
		    			currentRow[selectedCardCol]--;
		    		}
		    		
		    		
		    		return;
		    	}
		    
		    }}
		  
		  
		
		  
		for(int j = 0; j < A1Constants.NUMBER_OF_COLS; j++){ //check if empty space is available
				  if(cards[0][j].getHasBeenRemoved()){
					 
					  
				
					  
					  cards[0][j] = new Card(c.getValue(), c.getSuit());
					  cards[0][j].setActive(true);
					  cards[0][j].setIsFaceUp(true);
					  setupIndividualCardPosition(cards[0][j], 0, j);
					  currentRow[j] = 0;
					  
					  c.setActive(false);
			    	  c.setHasBeenRemoved(true);
					  
			    	  if(selectedCardRow > 0){
				    		cards[selectedCardRow -1 ][selectedCardCol].setActive(true);
				    		currentRow[selectedCardCol]--;
				    		}
			    	  
			    	 
				    		
				    return;
					  
				  }} 
			  
	  
  }