functional memoryGame