MASSIVE codebase update. Gameplay code should be less horrible now.