Memory game on a cube