public static void main(String[] args) throws SlickException {
		int windowWidth = Defaults.WINDOW_WIDTH;
		int windowHeight = Defaults.WINDOW_HEIGHT;
		boolean fullscreen = Defaults.FULLSCREEN;

		HashMap<String, String> configs = new HashMap<>();

		try (BufferedReader in = new BufferedReader(
				new FileReader(FilePaths.CONFIG))) {
			String line = null;
			while ((line = in.readLine()) != null) {
				String splitLine[];
				splitLine = line.split("=");
				configs.put(splitLine[0], splitLine[1]);
			}
		} catch (IOException e) {
			System.err.println(e);
			System.exit(1);
		}

		Set<String> s = configs.keySet();
		Iterator<String> it = s.iterator();

		while (it.hasNext()) {
			String key = it.next();
			if (key.equals("Resolution")) {
				String res = configs.get(key);
				String dimensions[] = res.split("x");
				windowWidth = Integer.parseInt(dimensions[0]);
				windowHeight = Integer.parseInt(dimensions[1]);
			}
			if (key.equals("Fullscreen")) {
				String full = configs.get(key);
				fullscreen = (full.equals("true")) ? true : false;
			}
		}

		AppGameContainer app = new AppGameContainer(new Game(
				GameConstants.TITLE));
		app.setShowFPS(false);
		app.setDisplayMode(windowWidth, windowHeight, fullscreen);
		app.setAlwaysRender(true);
		app.setTargetFrameRate(60);
		
		app.start();
	}