Memory Game

How could you avoid creating all of these globals?