Sketch selector

Hi I have an arduino with a video game shield; Video Game Shield | Wayne and Layne. I have two video games for it and want to be able to switch between the two with out having to download each. I had the idea of having a pot with an analog pin so when the sketch starts depending on if the pot is turned up or down starts a separate video game. Now i know how to read an analog pin and such but how would i get it to run each game because each game has a different void set up and loop? Would i use a while() or is there a totally different way to run each sketch depending on the pot?

Your sketch would need to incorporate the code from both games.

At the start of setup() you could read the selector pin and set a variable that indicates which game you're playing. I don't know if the games require different code in setup(), but if they did you'd do the appropriate initialisation for the selected game.

In loop() you'd test the game selection variable again and execute the corresponding game's logic. You don't have to extract that into separate functions but it would be a clean way to do it:

int selectedGame;

void setup()
{
    // configure the game selection pin as an input and read it to determine which game to play
    selectedGame = ...

    switch (selectedGame)
    {
        case 0:
            game0setup();
            break;
        case 1:
            game1setup();
            break;
        ... etc
    }
}
void loop()
{
    switch (selectedGame)
    {
        case 0:
            game0loop();
            break;
        case 1:
            game1loop();
            break;
        ... etc
    }
}

If you had lots of games you'd probably want to stick these functions into an array of function pointers, but I've gone for the simpler approach here.