It's when Ralph lands in a racing game called Sugar Rush — designed with all the trippy psychedelics of Mario Kart — that the movie finds its emotionalcore.
The internal tug - of - war of the emotional turmoil lands them deep in Riley's subconscious, along with Riley's core memories, which they need to save before they're lost to the graveyard of the forgotten past.