Finish main function before using xml to main our game state.