Flashcard constructor function

Refactor of old function wrapped within document on load. This is a basic version of the flashcard logic without the API data. Still working on getting the logic to affect the game board.