Big cleanup of main game files.