can you give me an example of a loop filled with gosubs to run a game?