class fitg {
   public static void main(String[] args) {
      System.out.println("Welcome to Freedom in the Galaxy");
      System.out.println("");

	// do not uncomment the following lines until the classes are available
	// for use and working !!!!!!!!!!!!!!!!!!!

        GamePicker a = new GamePicker();
	a.show();

//	ignore commented out code, it was mainly for testing

	while( !(a.done));          
	String gameType = a.status;
	System.out.println("" + a.status);
	a.status = (a.status).toLowerCase();
	// gameType ought to return a string representing type/saved file name
	// 
	// a.kill();
	if( a.status == "quit") {
		CreditsUI creds = new CreditsUI();
                creds.show();
		a.dispose();
         }
	 else {
                thisGame = new Game(a.status);

		start = new GameMenu();
		start.show(); 
		a.dispose();
		start.dis.jLabel4.setText(""+thisGame.totalGameTurns);
		thisGame.UpdateGameTurns();
		while( thisGame.winner == 0 ) ;
                if( thisGame.winner%2 == 1 ){
                   ELossWindow el = new ELossWindow();
		   el.show();
                }
		else{
                   HLossWindow hl = new HLossWindow();
		   hl.show();
                }
	 }
         

         a.dispose();
	// Game class does the talking to the gui . . . 
	// Game game = new Game(gameType);
 	// note: game.playgame() returns a winner code when the game ends
 	// winnerWindow winner = new winnerWindow(game.playGame());
	// When Game class returns, the game is over, and the 
	// character returned represents the winner
	// game.kill();
	// winner.kill();


   }
   public static Game thisGame;
   public static GameMenu start;
}
