Given scene/plot descriptions from movies or TV shows, and given a specific question about the scene, summarize the question into a title

In the movie Wreck-It Ralph, how can the Sugar Rush game understand outside weapons and the way they function if they weren't originally part of the game?  For example, in Sugar Rush(a kart racing game), Sergeant Calhoun uses her weapons, but how does the Sugar Rush game world understand the weapons function if it wasn't originally in the game code to begin with?
How does Sugar Rush understand outside weapons?