public void populateVert(Scanner sc, int num) { // Populates vertical ships
													// to board.
		int x, y;

		for (int i = 1; i <= num; i++) {
			System.out.println("Ship: " + i);
			do {
				System.out.println("Enter a Coordinate:");
				System.out.print("X:");
				x = sc.nextInt();

				System.out.print("Y:");
				y = sc.nextInt();

			} while (board[y][x] != null);
			int length = sc.nextInt();
			Ship s;
			if (length <= 6) {
				s = new Ship(length, count + 1);
				Coordinate[] c = new Coordinate[length];
				for (int j = 0; j < c.length && y + j < board.length; j++) {
					if (board[y + j][x] == null) {
						c[j] = new Coordinate(x, y + j);
					} else
						break;

				}
				if (c[c.length - 1] != null) {
					for (int j = 0; j < c.length; j++) {
						board[c[j].getY()][c[j].getX()] = s;

					}
					ships.add(s);
					count++;
				} else
					i--;
			}
			// break;
			// Coordinate[] c = new Coordinate[length];

		}

	}