Memory game implementation in Dart