Memory Game

How could you avoid needing to hard-code these?