Completed new game loop.

Now supports both battle sequences and puzzle sequences.