Fixed various mixin errors when launching game.

* Cleaned up some code.