Memory game in C++ and OpenGL