Fixed a bug when saving games, added an index file to keep track of teams and cleaned up the code behind the GUI.