Fixed standford card flip project with custom class