public Player[] factionSelectMenu() throws IOException {

		String[] choices = SQLBackend.getCompaniesNamesList();

		Company[] companies = SQLBackend.getCompanies();

		Player[] players = new Player[companies.length];

		Boolean nonProperSelection;

		int[] chosen = new int[companies.length];

		for (int i = 0; i < chosen.length; i++) {
			chosen[i] = 0;
		}

		for (int i = 1; i < Main.NUM_PLAYERS + 1; i++) {
			nonProperSelection = true;
			while (nonProperSelection) {

				int selection = JOptionPane.showOptionDialog(null, "Player "
						+ i + " Select Faction", "Console Wars",
						JOptionPane.YES_NO_OPTION, JOptionPane.PLAIN_MESSAGE,
						null, choices, "0");

				if (chosen[selection] == 1) {
					//
				} else {
					chosen[selection] = 1;
					nonProperSelection = false;
				}

				players[i - 1] = new Player(companies[selection]);

				// new CharacterMenu(selection);

			}

		}
		return players;

	}