Code for a GUI game of War