Refactoring a bunch of things.
Refactored splitscreen and gallery code.