public static boolean getNextCoordinate() {
		int nextR;
		int nextC;
		int i = 0;
		while (true) {
			i++;
			int r = previousCordinate.getR();
			int c = previousCordinate.getC();
			if (r + 1 > rowNum && c + 1 > cowNum) {
				nextR = 1;
				nextC = 1;
			} else if (c + 1 > cowNum) {
				nextR = r + 1;
				nextC = 1;
			} else {
				nextR = r;
				nextC = c + 1;
			}
			previousCordinate = new Coordinate(nextR, nextC);
			if (cards[nextR][nextC].getKind() != 0) {
				return true;
			}
			if (i >= rowNum * cowNum)
				return false;
		}

	}