Cleaned up the frontend. Added stub for flipping cards.