public static void main(String[] args) {
		InputStreamReader inStream = new InputStreamReader(System.in);
		BufferedReader reader = new BufferedReader(inStream);
		String line = "";
		startLoginServer();
		startGameServer();
		while (!line.toLowerCase().equals("exit")) {
			try {
				line = reader.readLine();
				if (line.toLowerCase().equals("stop loginserver")) {
					stopLoginServer();
				} else if (line.toLowerCase().equals("start loginserver")) {
					startLoginServer();
				} else if (line.toLowerCase().equals("stop gameserver")) {
					stopGameServer();
				} else if (line.toLowerCase().equals("start gameserver")) {
					startGameServer();
				} else if (line.toLowerCase().equals("exit")) {
					stopLoginServer();
					stopGameServer();
					Thread.sleep(30000);
					System.out.println("Exiting...");
					return;
				}
			} catch (Exception e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
	}