http://codepad.org/YO8OmIHZ

It is supposed to flip over 2 cards, check for equality, and dim the cards if they are a match or flip them back over if they arent. It only flips over one card and stays like that. Doesnt let you click any card after that.