public static void main(String[] args)
	{
		new StartScreen();
		while (StartScreen.chosen == 0)
		{
			System.out.print("");
		}

		if (StartScreen.chosen == 1) // create a new game
		{
			EventQueue.invokeLater(new Runnable()
			{
				public void run()
				{
					try
					{
						Iterator.getIterator().setUpFrame();
						
					}
					catch (Exception e)
					{
						e.printStackTrace();
					}
				}
			});
		}

		else
		{
			GameSaveLoad game = GameSaveLoad.getFromFile("save.dat");
			Controller.setController(game.getController()); // reset the controller
			Iterator.setIterator(game.getIterator()); // reset the iterator
			Iterator iterator = Iterator.getIterator();
			iterator.switchScreen(iterator.getScreen()); // makes the next screen to show up the last screen
			iterator.getFrame().setVisible(true);
			game.reset(); // resets the listeners
			System.out.println(Controller.getController().getNumPlayers()); // shows the number of players

		}
	}