Added game logic

added core logic for the foundation of the memory game. No bells and
whistles like buttons or music, but the function is complete save a few
small bugs when the user does something unexpected.