public static void main(String... args)
	{
		try
		{
			int width = Integer.parseInt(args[0]);
			int height = Integer.parseInt(args[1]);
			int numberOfCheese = Integer.parseInt(args[2]);
			int duration = 0;
						
			if (width < 5 || height < 5 || numberOfCheese < 1)
			{
				printHelp();
				return;
			}
			
			if (args.length == 4)
			{
				duration = Integer.parseInt(args[3]);
				System.out.println("Game will last for " + duration + " seconds");
			}
		
			
			GameSecurityManager.install();
			GameUI ui = new GameUI(width, height, numberOfCheese, duration);
			ui.setVisible(true);
		}
		catch (Exception ex)
		{
			System.out.println(ex.getMessage());
			ex.printStackTrace();
			printHelp();
		}
	}