private Point getCoord(String token)
	// Token's format is <x>-<y>; return it as a Point object
	{
		int x = 0;
		int y = 0;
		String[] results = token.split("-");
		if (results.length != 2)
			System.out.println("Incorrect coordinates in " + token);
		else {
			try {
				x = Integer.parseInt(results[0]);
				y = Integer.parseInt(results[1]);
			} catch (NumberFormatException ex) {
				System.out.println("Incorrect format for coordinates in "
						+ token);
			}
		}

		if (x >= numXTiles) {
			System.out.println("x coordinate too large in " + token);
			x = numXTiles - 1;
		}
		if (y >= numYTiles) {
			System.out.println("x coordinate too large in " + token);
			x = numYTiles - 1;
		}

		return new Point(x, y);
	} // end of getCoord()