private boolean kingInCheck(PlayerNum playerNum, int x, int y) {
		if (!inBounds(x, y)) {
			return false;
		}
		//Iterates through the board and check each pieces movesets
		for (int i = 0; i < board.length; ++i) {
			for (int j = 0; j < board[0].length; ++j) {
				if (!inBounds(i, j)) {
					continue;
				}
				boolean[][] moves;
				//Only check pieces that are opponent pieces
				if (board[i][j].getClass() != pieces.King.class
						&& board[i][j].getPlayerNum() != PlayerNum.EMPTY
						&& board[i][j].getPlayerNum() != currentPlayer
								.getPlayerNum()) {
					moves = getAvailableMoves(board[i][j].getPlayerNum(), i, j,
							true);
					//If an opponent piece can move in the king's location, it's in check
					if (moves[x][y]) {
						return true;
					}
				}
			}
		}
		return false;
	}