added stuff for card flip etc.