checks for match, proceeds accordingly

push cardIndex - cardArray, checks if a match, then either pop/flip or keep